From 17.04, the wine packages have become wine-stable
and wine-development
. These are coinstallable, so the wine.desktop
file is not installed in /usr/share/applications
by either of these packages to avoid conflicts. Hence, Wine does not have an entry in the Open With menu. From /usr/share/doc/wine-stable/README.Debian.gz
:
To enable system-wide support for .exe files execute the following
command (replace /usr/share/doc/wine
with
/usr/share/doc/wine-development
if you use wine-development
):
$ sudo cp /usr/share/doc/wine/examples/wine.desktop /usr/share/applications/
To support this only for your current user execute:
$ cp /usr/share/doc/wine/examples/wine.desktop ~/.local/share/applications/
To remove these native file type associations again execute the
following commands:
$ sudo rm -f /usr/share/applications/wine.desktop
$ sudo update-desktop-database
$ rm -f ~/.local/share/applications/wine.desktop
$ rm -f ~/.local/share/applications/wine-extension-*
$ update-desktop-database ~/.local/share/applications/
This is slightly mistaken, it's /usr/share/doc/wine-stable
, not /usr/share/doc/wine
.
sudo cp /usr/share/doc/wine-stable/examples/wine.desktop /usr/share/applications/
And Wine should start showing up in the Open With lists for selection.