Forums

POL_Shortcut modify Exec line

Auteur Réponses
tuxmartin Vendredi 5 September 2014 à 15:49
tuxmartinAnonymous

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 Vendredi 5 September 2014 à 16:33
Quentin PÂRIS
Admin

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 Vendredi 5 September 2014 à 16:37
tuxmartinAnonymous

Is there any way how to create my own shortcut?

Quentin PÂRIS Vendredi 5 September 2014 à 18:20
Quentin PÂRIS
Admin

POL already creates it automatically.

I don't understand what do you want to do exactly

tuxmartin Vendredi 5 September 2014 à 20:27
tuxmartinAnonymous

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 :-(

Edité par tuxmartin

Quentin PÂRIS Vendredi 5 September 2014 à 20:37
Quentin PÂRIS
Admin

Open your .docx file directly with PlayOnLinux

tuxmartin Vendredi 5 September 2014 à 23:50
tuxmartinAnonymous

If I opening docx file from Word File->Open, it is ok.

But I want open docx files by double clicking on docx files on Nautilus.

A lot of people have the same problem:
http://askubuntu.com/questions/116002/how-to-set-file-associations-with-playonlinux
http://askubuntu.com/questions/147225/how-to-set-ms-word-2010-as-default-application-for-all-docx-and-other-types
http://ubuntuforums.org/showthread.php?t=1940522

Quentin PÂRIS Samedi 6 September 2014 à 17:07
Quentin PÂRIS
Admin

 

If I opening docx file from Word File->Open, it is ok.

But I want open docx files by double clicking on docx files on Nautilus.

A lot of people have the same problem:
http://askubuntu.com/questions/116002/how-to-set-file-associations-with-playonlinux
http://askubuntu.com/questions/147225/how-to-set-ms-word-2010-as-default-application-for-all-docx-and-other-types
http://ubuntuforums.org/showthread.php?t=1940522

 

Ronin DUSETTE Lundi 8 September 2014 à 8:43
Ronin DUSETTE
Admin

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. 


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts