1

When I create a symlink on a .exe and I double click it, nothing happens. Instead, if I double click the original file, Wine opens automatically. Why is this? How can be changed? Can the situation be different with another kind of link?

NB: I don't want a .desktop, only a symlink.

3

This was a comment that turned out to be the answer:

Ah...symlink. The Wine symlink probably doesn't work because the ".exe" requires path to the "working directory". Unfortunately symlink does not support this. You will need to create a wrapper script (how? answered here: askubuntu.com/questions/51314/… ); then either use the wrapper script as a launcher, or keep it in the ".exe" folder and symlink to it.

I'm not sure what you mean with "soft link". But when I need to create a Wine shortcut launcher I just start GEdit and create a file like this:

#!/usr/bin/env xdg-open    
[Desktop Entry]
Version=1.0
Type=Application
Name=MY APPLICATION NAME
Comment=THINGS I HAVE TO SAY ABOUT THE APPLICATION
Exec=sh -c "cd /PATH_TO_EXE_FOLDER; wine FILENAME.exe"
Categories=ENGINERRING;GRAPHICS;ETC
Icon=/PATH_TO_ICON_IMAGE_FILE

Then save the file wherever I want as a ".desktop", for example: "MyWineApp.desktop".

  • Thanks for the answer. Well, I don't want a .desktop, but only a symlink. – tigerjack89 Oct 25 '14 at 18:19
  • 1
    Ah...symlink. The Wine symlink probably doesn't work because the ".exe" requires path to the "working directory". Unfortunately symlink does not support this. You will need to create a wrapper script (how? answered here: askubuntu.com/questions/51314/… ); then either use the wrapper script as a launcher, or keep it in the ".exe" folder and symlink to it. – Ronald Chua Oct 27 '14 at 17:15
  • Can you add the comment to your answer? In such a way I can mark your answer as accepted. – tigerjack89 Dec 15 '14 at 6:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.