Comment 14 for bug 243390

Revision history for this message
In , Bammzilla-a (bammzilla-a) wrote :

> Come to think of it, all apps running in Wine (not just wordview) should be run
> from such a script; this way user files passed on to them would be converted to
> a DOS-path.

I applied a similar technique to IrfanView and now all my images can be opened in IrfanView by just double-clicking on them.

#!/bin/sh
if [ "$@" ]; then arg=z:`echo $@ | sed -e 's/\//\\\\/g'`; fi
wine "C:\Program Files\IrfanView\i_view32.exe" "$arg";

The solution being so simple (but inelegant), why can't something similar be implemented by default on all apps installed in Wine?

A more elegant solution would be to get rid of this script altogether and use Wine's built-in function for converting Unix to DOS path. (Is there such a function? I may be misinformed.)