tuxmartin |
Friday 5 September 2014 at 15:49
|
tuxmartin
|
Hi, I am trying to modfiy POL script for Office 2010.
Script create icons using POL_Shortcut command:
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2010"
it create icon file ~/.local/share/applications/wine-extension-docx.desktop with this content:
Exec=env WINEPREFIX="/home/martin/.PlayOnLinux//wineprefix/Office2010" wine start /ProgIDOpen Word.Document.12 %f
I need to change "%f" at end to "z:%f"
Exec=env WINEPREFIX="/home/martin/.PlayOnLinux//wineprefix/Office2010" wine start /ProgIDOpen Word.Document.12 z:%f
How can I do it from POL script?
|
Quentin PÂRIS |
Friday 5 September 2014 at 16:33
|
Quentin PÂRIS
|
This is a bad idea to modify the script like this.
Wine is creating ~/.local/share/applications/wine-extension-docx.desktop, not POL.
The right shortcut (ies POL's one) is created on your desktop once installed
|
tuxmartin |
Friday 5 September 2014 at 16:37
|
tuxmartin
|
Is there any way how to create my own shortcut?
|
Quentin PÂRIS |
Friday 5 September 2014 at 18:20
|
Quentin PÂRIS
|
POL already creates it automatically.
I don't understand what do you want to do exactly
|
tuxmartin |
Friday 5 September 2014 at 20:27
|
tuxmartin
|
http://www.playonlinux.com/en/issue-3476.html :
If I double click to docx file, Word doesn't open this file. After I edit command in shortcut it is ok.
Now I must edit all desktop files after intalling Office manually :-(
Edited by tuxmartin
|
Quentin PÂRIS |
Friday 5 September 2014 at 20:37
|
Quentin PÂRIS
|
Open your .docx file directly with PlayOnLinux
|
tuxmartin |
Friday 5 September 2014 at 23:50
|
tuxmartin
|
|
Quentin PÂRIS |
Saturday 6 September 2014 at 17:07
|
Quentin PÂRIS
|
|
Ronin DUSETTE |
Monday 8 September 2014 at 8:43
|
Ronin DUSETTE
|
Exactly, Quentin. You should be able to (well, in most file managers), right-click the file in question, and be able to associate it with a program. It is usually like: right-click, open with ..., pick the program, check a box to associate the file with a program, and when you choose the program, simply point it to your shortcut for the program installed via POL.
I haven't seen a file manager without this feature in a long time, so chances are, if you check the docs or forums for your Linux distro, you will see how to do it.
|