A way to automatically set cwd to dirname of a file?
What i'm asking is whether there is a way to configure wine to essentially handle cd $(dirname $1) && wine $@ (this is pseudocode that probably doesn't work but you get the idea).
I kinda want to do it as part of Wine config itself, if possible, instead of creating a wrapper script. The reason is i want to plug it into binfmt_misc.
Posted Mar 5, 2026, 7:50 PM UTC
11