WINEPREFIX shortcut

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Snake450
Level 3
Level 3
Posts: 90
Joined: Wed Jul 15, 2009 3:11 pm

WINEPREFIX shortcut

Post by Snake450 »

How do you make a WINEPREFIX shortcut? I type in the command "WINEPREFIX=~/.wine-steam/ wine "c:\Program Files\Steam\steam.exe" but it just ends up crashing.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: WINEPREFIX shortcut

Post by vitamin »

Snake450 wrote:How do you make a WINEPREFIX shortcut? I type in the command "WINEPREFIX=~/.wine-steam/ wine "c:\Program Files\Steam\steam.exe" but it just ends up crashing.

Code: Select all

env WINEPREFIX="/home/vitamin/.wine-steam" wine "C:\Program Files\Steam\steam.exe"
Snake450
Level 3
Level 3
Posts: 90
Joined: Wed Jul 15, 2009 3:11 pm

Post by Snake450 »

Alright I'll what happens
Snake450
Level 3
Level 3
Posts: 90
Joined: Wed Jul 15, 2009 3:11 pm

Post by Snake450 »

I first got "wine: invalid directory WINEPREFIX : not an absolute path" then I took off the "/home/jack/" and used ~ and now I get "Failed to initialize client - unable to load game resources"
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Snake450 wrote:I first got "wine: invalid directory WINEPREFIX : not an absolute path" then I took off the "/home/jack/" and used ~ and now I get "Failed to initialize client - unable to load game resources"
You can't use "~" in .desktop shortcuts. It's not valid expansion there. It only works with shell.

What's the full content of your .desktop link looks like?
Snake450
Level 3
Level 3
Posts: 90
Joined: Wed Jul 15, 2009 3:11 pm

Post by Snake450 »

env WINEPREFIX=~/.wine-FEAR/ wine "C:\Program Files\Sierra\FEARCombat\FEARMP.exe"

to get the second error but It wont find the game if I use the second with /home/jack/

env WINEPREFIX="home/jack/.wine-FEAR/" wine "C:\Program Files\Sierra\FEARCombat\FEARMP.exe"
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

I asked for the complete content of the .desktop file. Not few lines of something that's not even a correct command.
Locked