[Wine] Application will only run when executed from its directory

Vincent Povirk madewokherd+8cd9 at gmail.com
Thu Jan 22 11:12:52 CST 2009

Short of writing a shell script, the easiest way to start an
executable file in its directory is to run

$ wine start /unix ".wine/drive_c/Scan/program.exe"

When invoked this way, wine will try to start the file the same as if
it were double-clicked in windows explorer. It will start from the
path containing the exe and invoke it with its full dos path.

This is the way file browsers invoke Wine. If that worked, this should
also work.

The drawback is that you cannot pass arguments to the executable this
way; for that you would need a shell script.

Vincent Povirk

More information about the wine-users mailing list