2

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.

0

2 Answers 2

6

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".

3
  • Thanks for the answer. Well, I don't want a .desktop, but only a symlink.
    – tigerjack
    Oct 25, 2014 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. Oct 27, 2014 at 17:15
  • Can you add the comment to your answer? In such a way I can mark your answer as accepted.
    – tigerjack
    Dec 15, 2014 at 6:48
-1

I know the best and easiest way !

Open /home/.local/share/wine/programs And you can see your wine apps folders open your app folder , there is your_app_name.desktop , copy it to desktop and right click on it , and then , left click on Allow Launching

Congratulations !!! Your app shortcut is on your desktop , enjoy !

Sorry if my English is not good

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.