Ubuntu – I installed WINE on the device, can I make a WINE.desktop file to open *.exe s via GUI

19.04nautiluswine

I want to be able to open *.exe files via the built-in nautilus file explorer by simply double-clicking on *.exe . This would make using WINE much easier and convenient, as well as more natural. I already have some code written:

desktop configuration file
[Desktop Entry]
Type=Application
Exec=wine %u

I still cannot find it in the "Show Applications" menu or the one to select a program to open the file with.

Best Answer

sudo cp /usr/share/doc/wine-stable/examples/wine.desktop /usr/share/applications/

or
Code:

sudo ln -s /usr/share/doc/wine-stable/examples/wine.desktop /usr/share/applications/

Then wine windows program loader will show up in the nautilus' "open with" list.