How can One Create a Desktop Shortcut to a Wine/Windows Game

Questions about Wine on Linux
Post Reply
sparks79
Newbie
Newbie
Posts: 1
Joined: Sat Mar 07, 2020 3:49 pm

How can One Create a Desktop Shortcut to a Wine/Windows Game

Post by sparks79 » Sat Mar 07, 2020 4:42 pm

I am Using Zorin OS 15.2 Core 64bit.
I have Installed Wine Correctly , from these instructions ( https://zoringroup.com/forum/viewtopic.php?f=4&t=15343 ).
I have Copied My Game Folder from another PC to Zorin, Home Folder.
It is a very Old game of moraffs morejongg 7.0 from about 1995/8.
For the last 20 od years has worked without any problems under windows and still works.
I don't have the original cd , just a folder with the game installed.
No Install file, it just runs by clicking on the game exe file.
And I can get it to work in zorin by right click the exe file and tell it to ( open with windows install application ).
That apparantly starts up wine, I think, but anyway it works.
But I want a simple Shortcut to it on the desktop, that would work like any other One Click to Launch.
None of this having to click Files, then Games, Folder, morejongg.exe, and Right click it and then more bs.
Any help would be appreciated.

jkfloris
Level 9
Level 9
Posts: 1274
Joined: Thu Aug 14, 2014 10:10 am

Re: How can One Create a Desktop Shortcut to a Wine/Windows Game

Post by jkfloris » Sun Mar 08, 2020 7:27 am

Probably you want a .desktop file.
Open your favorite text editor and create the .desktop file containing:

Code: Select all

[Desktop Entry]
Name=MoreJongg 
Exec=env WINEPREFIX="/home/username/.wine" wine C:\\\\Program\\ Files\\\\Games\\\\morejongg.exe
Type=Application
StartupNotify=true
Path=/home/username/.wine/dosdevices/c:/Program Files/Games/
Replace env WINEPREFIX="/home/username/.wine with your username (or if you have created a different Wineprefix name, with your Wineprefix name)
The same applies to Path=/home/username/.wine/dosdevices/c:/Program Files/Games/
And replace wine C:\\\\Program\\ Files\\\\Games\\\\morejongg.exe with the real path to your game.
Yes, four backslashes are necessary to replace one Windows backslash and two backslashes are needed before a space.

Save the file as morejongg.desktop and make it executable

Code: Select all

chmod 755 morejongg.desktop

Post Reply