I have wine installed. But how can I set it default for running exe files?
Normally simply executing the exe file with (double) click in the file manager should run it through Wine. If for some reason that doesn't happen (beside trying to re-install Wine in order to get the expected behavior) you could do the following:
In terminal run
In order to run it with (double) click: create a
~/.local/share/application/wine.desktop file with the lines like
[Desktop Entry] Exec=wine %f Name=Run in Wine Mimetype=application/x-dosexec Categories=System;Settings;
then make Run in Wine the default "application" for exe files (in Dolphin: Properties > (tab) General > Add).
Alternatively, create a
[Desktop Entry] Actions=wine Mimetype=application/x-dosexec ServiceTypes=KonqPopupMenu/Plugin Type=Service X-KDE-Priority=TopLevel [Desktop Action wine] Exec=wine %f Name=Run in Wine Icon=wine
in order to have a right-click context menu option ("Service Menu") in Dolphin.
I cannot test now, as I don't use Wine as we speak, but
konsole -e wine %f or
sh -c 'wine %f' might be needed for the
If someone can confirm
Exec=wine %f works, please comment.