[Bug 12380] Microsoft Word Viewer 2003: Cannot associate with *.doc files

wine-bugs at winehq.org wine-bugs at winehq.org
Thu May 29 00:08:23 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=12380





--- Comment #11 from Bamm Gabriana <bammzilla at gabriana.com>  2008-05-29 00:08:23 ---
> 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.)


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list