Het forum

POL_Shortcut modify Exec line

Auteur Antwoorden
tuxmartin Vrijdag 5 September 2014 om 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 Vrijdag 5 September 2014 om 16:33
Quentin PÂRISAnonymous

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 Vrijdag 5 September 2014 om 16:37
tuxmartinAnonymous

Is there any way how to create my own shortcut?

Quentin PÂRIS Vrijdag 5 September 2014 om 18:20
Quentin PÂRISAnonymous

POL already creates it automatically.

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

tuxmartin Vrijdag 5 September 2014 om 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 :-(

Aangepast door tuxmartin

Quentin PÂRIS Vrijdag 5 September 2014 om 20:37
Quentin PÂRISAnonymous

Open your .docx file directly with PlayOnLinux

tuxmartin Vrijdag 5 September 2014 om 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 Zaterdag 6 September 2014 om 17:07
Quentin PÂRISAnonymous

 

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 Maandag 8 September 2014 om 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. 


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

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com