I'm using MS Office 2007 via Wine/PoL and I've made the desktop files for them like that:
For starting:
[Desktop Entry]
Encoding=UTF-8
Name=Word 2007
GenericName=Game
Comment=PlayOnLinux
Type=Application
Exec=/usr/share/playonlinux/playonlinux --run "Microsoft Word 2007"
Icon=/home/sebastian/.PlayOnLinux//icones/full_size/Word 2007
Categories=Office;
For file opening: (z:
is the wine link to /
)
[Desktop Entry]
Encoding=UTF-8
Name=Mit Word 2007 öffnen
GenericName=Game
Comment=PlayOnLinux
Type=Application
Exec=/usr/share/playonlinux/playonlinux --run "Microsoft Word 2007" z:%f
Icon=/home/sebastian/.PlayOnLinux//icones/full_size/Word 2007
Categories=Office;
However, the file opening shortcut doesn't accept files with spaces (they get replaced by %20
).
Now I want to merge those two files into one, which should start Word and, if supplied, opens a document, which may contain spaces.
How do I accomplish that?