http://bugs.winehq.org/show_bug.cgi?id=26243
Summary: WineFAQ: 7.5. I want to associate a native program with a file type in Wine Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: kjensen@devnull.dk
Hi, I have submitted a change to the WineFAQ but it seems like you don't like it - as it keeps getting reverted... I'll try to explain the change here (as a last attempt)
In section 7.5. "I want to associate a native program with a file type in Wine" If the argument to the program contains spaces it will not work - so I have added sed to change " " (spaces) to "\ " like:
#!/bin/sh $1 "`wine winepath -u "$2"`" | sed 's/ /\ /'
I.e. you try to open a .doc file named "my document.doc" then without sed, openoffice will not be able to open the file. With sed added it will. I'm sure that I'm not the only one with this problem.
Another minor thing: I believe most people will find it easier to understand if you use ~ as the reference to home instead of telling them to: "make sure that $HOME/bin directory is in your $PATH."
But that's just my two cents Sincerely, Kim Jensen