GNOME menu entries for wine run games

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Ezekiel000
Level 2
Level 2
Posts: 19
Joined: Thu May 28, 2009 4:20 pm

GNOME menu entries for wine run games

Post by Ezekiel000 »

I have been trying to add a launcher to the gnome menu for some of my wine games, but I have found that when I add them to the menu the games complain about missing files, I assume because it is looking for the rest of the game files in the directory that the launcher is in. This doesn't happen when I run the same command within the games directory they work fine.
I used to have this problem with Sam & Max Season One but I got round this by using this command:
env WINEPREFIX="/home/ezekiel/.wine" wine "C:\\windows\\profiles\\ezekiel\\My Documents\\Games\\Sam and Max - Season One\\Episode 1 - Culture Shock Data\\SamMax101.exe"
instead of just:
wine "/home/ezekiel/Games/Sam and Max - Season One/Episode 1 - Culture Shock/SamMax101.exe
The first works from the menu but the second only works from within the Culture Shock directory.
But I tried the same thing with real myst but it didn't work, the new command:
env WINEPREFIX="/home/ezekiel/.wine" /home/ezekiel/Games/realMYST/wine/wine "C:\\windows\\profiles\\ezekiel\\My Documents\\Games\\realMYST\\RealMYST.exe"
Old command:
/home/ezekiel/Games/realMYST/wine/wine ./RealMYST.exe
(A small note I am using a local version of wine because real myst doesn't work with the latest version of wine but Sam & Max doesn't work with the stable version)
Both the commands don't work unless I run them from a terminal within the real myst directory.

Can anyone help?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

GNOME menu entries for wine run games

Post by austin987 »

On Sat, May 30, 2009 at 10:35 AM, Ezekiel000 <[email protected]> wrote:
I have been trying to add a launcher to the gnome menu for some of my wine games, but I have found that when I add them to the menu the games complain about missing files, I assume because it is looking for the rest of the game files in the directory that the launcher is in. This doesn't happen when I run the same command within the games directory they work fine.
I used to have this problem with Sam & Max Season One but I got round this by using this command:
env WINEPREFIX="/home/ezekiel/.wine" wine "C:\\windows\\profiles\\ezekiel\\My Documents\\Games\\Sam and Max - Season One\\Episode 1 - Culture Shock Data\\SamMax101.exe"
instead of just:
wine "/home/ezekiel/Games/Sam and Max - Season One/Episode 1 - Culture Shock/SamMax101.exe
The first works from the menu but the second only works from within the Culture Shock directory.
But I tried the same thing with real myst but it didn't work, the new command:
env WINEPREFIX="/home/ezekiel/.wine" /home/ezekiel/Games/realMYST/wine/wine "C:\\windows\\profiles\\ezekiel\\My Documents\\Games\\realMYST\\RealMYST.exe"
Old command:
/home/ezekiel/Games/realMYST/wine/wine ./RealMYST.exe
(A small note I am using a local version of wine because real myst doesn't work with the latest version of wine but Sam & Max doesn't work with the stable version)
Both the commands don't work unless I run them from a terminal within the real myst directory.

Can anyone help?
You need to make sure the 'set working directory' option is set to the
game directory.

Also, always use the windows path, not Unix path. Some programs get
confused by a wrong path.

--
-Austin
Ezekiel000
Level 2
Level 2
Posts: 19
Joined: Thu May 28, 2009 4:20 pm

Post by Ezekiel000 »

Sorry about the late reply, how do I 'set working directory'? with wine?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

GNOME menu entries for wine run games

Post by austin987 »

On Tue, Jun 9, 2009 at 10:31 AM, Ezekiel000<[email protected]> wrote:
Sorry about the late reply, how do I 'set working directory'? with wine?
It's not a wine setting, it's an xdg setting. Should be an option for
the Gnome shortcut.

--
-Austin
Ezekiel000
Level 2
Level 2
Posts: 19
Joined: Thu May 28, 2009 4:20 pm

Post by Ezekiel000 »

Ah right I found this:
http://ubuntuforums.org/showthread.php?t=609634
As gnome menu launchers don't have an option for working directory.

Thanks for your help.
Locked