Wine desktop integration: current directory of app launched with doubleclick?
shacklein at gmail.com
Sat Feb 14 19:15:28 CST 2009
2009/2/15 Dan Kegel <dank at kegel.com>:
> On Sat, Feb 14, 2009 at 2:33 PM, Ben Klein <shacklein at gmail.com> wrote:
>> Probably. It's worth trying out, but I have an idea to work around it:
>> DIR=`dirname "$1"`
>> DIR=`cd "$DIR"; pwd`
>> pushd "$DIR"
>> wine "$@" &
> I don't think that'll help, offhand.
Well, I suppose it would depend where the script is run from. If the
problem is the shell staying in the CD directory until wine finishes,
it should fix it. An alternative would be to replace pushd/popd with:
cd "$DIR" and cd respectively ...
> Maybe the original script will work just fine, I'll see if I can find
> a multi-disc game
> to test.
Let me know :)
More information about the wine-devel