I read somewhere that directly running an app in Wine without first cd-ing to it's folder wasn't the best thing and that I should right a bash script to launch them if I don't wanna constantly cd to the right directory. Wine creates Shortcuts in the menu for me for all the apps I install through it. My question is, are these shortcuts the OK way to launch Wine apps or should I still make scripts and avoid using the default shortcuts?
Alucard-sama wrote:> My question is, are these shortcuts the OK way to launch Wine apps or should I still make scripts and avoid using the default shortcuts?They should be. All those shortcuts have work directory set as specified by the installer itself. Keep in mind that some WMs might not show this path in the link properties.
K shweet thanks
Charity Abbott wrote:> It depends on the app really.No it does not. As I said above a link (.desktop file) have the "Path" variable that works as a "Work directory" in .lnk file. If you trying to say this does not work for you - file bug with your distro. As all desktop environments aka WMs do support this parameter.
"vitamin" <wineforum-user at winehq.org> writes:> Charity Abbott wrote: >> It depends on the app really. > > No it does not. As I said above a link (.desktop file) have the "Path" variable that works as a "Work directory" in .lnk file. If you trying to say this does not work for you - file bug with your distro. As all desktop environments aka WMs do support this parameter.First of all, that is good news for me, I did not know about the path variable. Second, question: can one also set environment variables specific for an app in the link, or must that then be a script (which is what I am doing now, for example, to run Word and Excel with a Japanese input method enabled, different from the one which I can use in my desktop and WM). -- Gernot Hassenpflug
Gernot Hassenpflug wrote:> Second, question: can one also set environment variables specific for > an app in the link, or must that then be a script (which is what I am > doing now, for example, to run Word and Excel with a Japanese input > method enabled, different from the one which I can use in my desktop > and WM).Yes, look at any link created by resent Wine version. You will see how it handles WINEPREFIX. Just add more env vars to the list - that's all.