Setting the Exec= line in a .desktop file to: WINEPREFIX=foo wine bar worked in KDE. In Gnome, it works if "run from the terminal" is set.
Unfortunately the Freedesktop spec for desktop entries does not specify a way to add environment variables. So yes, it looks like we'll need a wrapper script, or perhaps add a --prefix option to Wine?
On 1/27/07, Wine Bugs wine-bugs@winehq.org wrote:
http://bugs.winehq.org/show_bug.cgi?id=6689
------- Additional Comments From vitaliy@kievinfo.com 2007-28-01 01:49 ------- This is not going to work - it's not standard compliant. And I think it won't work on Gnome either. The only way this can be fixed atm is using some wrapper script.
-- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Lei Zhang wrote:
Setting the Exec= line in a .desktop file to: WINEPREFIX=foo wine bar worked in KDE. In Gnome, it works if "run from the terminal" is set.
Unfortunately the Freedesktop spec for desktop entries does not specify a way to add environment variables. So yes, it looks like we'll need a wrapper script, or perhaps add a --prefix option to Wine?
or change the exec line to: /bin/sh -i -c "WINEPREFIX=foo wine"
tom
On Monday 29 January 2007 12:50, Tomas Carnecky wrote:
Lei Zhang wrote:
Setting the Exec= line in a .desktop file to: WINEPREFIX=foo wine bar worked in KDE. In Gnome, it works if "run from the terminal" is set.
Unfortunately the Freedesktop spec for desktop entries does not specify a way to add environment variables. So yes, it looks like we'll need a wrapper script, or perhaps add a --prefix option to Wine?
or change the exec line to: /bin/sh -i -c "WINEPREFIX=foo wine"
Instead, wouldn't /bin/sh -i -c "WINEPREFIX=foo exec wine" also properly dispose of the now useless copy of the shell?
Cheers, Kuba
Mandag 29 januar 2007 20:58, skrev Kuba Ober:
On Monday 29 January 2007 12:50, Tomas Carnecky wrote:
Lei Zhang wrote:
Setting the Exec= line in a .desktop file to: WINEPREFIX=foo wine bar worked in KDE. In Gnome, it works if "run from the terminal" is set.
Unfortunately the Freedesktop spec for desktop entries does not specify a way to add environment variables. So yes, it looks like we'll need a wrapper script, or perhaps add a --prefix option to Wine?
or change the exec line to: /bin/sh -i -c "WINEPREFIX=foo wine"
Instead, wouldn't /bin/sh -i -c "WINEPREFIX=foo exec wine" also properly dispose of the now useless copy of the shell?
You don't have to start a new shell if you use
env WINEPREFIX=foo wine
Regards,
Alexander N. Sørnes
Cheers, Kuba
On 1/29/07, Alexander Nicolaysen Sørnes alex@thehandofagony.com wrote:
Mandag 29 januar 2007 20:58, skrev Kuba Ober:
On Monday 29 January 2007 12:50, Tomas Carnecky wrote:
Lei Zhang wrote:
Setting the Exec= line in a .desktop file to: WINEPREFIX=foo wine bar worked in KDE. In Gnome, it works if "run from the terminal" is set.
Unfortunately the Freedesktop spec for desktop entries does not specify a way to add environment variables. So yes, it looks like we'll need a wrapper script, or perhaps add a --prefix option to Wine?
or change the exec line to: /bin/sh -i -c "WINEPREFIX=foo wine"
Instead, wouldn't /bin/sh -i -c "WINEPREFIX=foo exec wine" also properly dispose of the now useless copy of the shell?
You don't have to start a new shell if you use
env WINEPREFIX=foo wine
Regards,
Alexander N. Sørnes
Cheers, Kuba
This sounds like the best solution so far. If nobody else has any objections, I'll test it out in Gnome and KDE, and then send in a patch.