You are here > Bugs > PlayOnLinux > Bug > Ticket #1018
Added by boudoi_b on 2012-06-21 11:46:34 - Comment or update this ticket
This is not a bug, indeed, some arguments are not paths.
Your code would bug for exemple if you run ./Word2003 ./file.doc. The script would understand ./Word2003 z:./file.doc, which is obviously wrong.
That is mostly the reason why we do not add this into code POL, we consider that it is a dirty hack.
However, POL 4.1.1 can handle file extensions. Just set ".docx" files to Word 2010 (for exemple) in PlayOnLinux Options -> File associations.
Then, run "playonlinux file.docx" (Or assign your doc file to PlayOnLinux instead of assigning them to the word shortcut), and it will work
I know it's dirty, it dit it because I'm absolutly sure that my users
will not launch files by command line or scripts, only by a Linux
filebrowser.
By the way, I haven't shown the "File associations" and it works pretty well.
Sorry for the inconvenience,
I thin we could add something like
if [ -f "$file" ] && [ "${file:1}" = "/" ]; then
file="z:$file"
fi
I'm not closing the bug in order to to study the question
Fixed in 4.1.4-dev