"Scripts" option with right click

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
maximi89
Posts: 6
Joined: Tue Mar 03, 2009 2:46 am

"Scripts" option with right click

Post by maximi89 »

Hi, i wish if it possible, to get an option on right click of Script, i mean when you create a script, you can execute directly of script mouse menu.
"$HOME/.gnome2/nautilus-scripts/Add to Audacious Queue"

Thanks
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: "Scripts" option with right click

Post by maces »

Hi

Why are you starting a new thread for nearly the same future request? Is it important for you, that you can use your nautilus scrips? Or only to be able to run a script? The second future is exactly what the future request is about. If it's more important for you, that you can use your nautilus scripts in PCManFM leave a comment on the future request ;)

maces
Corto
Posts: 14
Joined: Thu Feb 19, 2009 5:21 pm

Re: "Scripts" option with right click

Post by Corto »

why you don't create a *.desktop file, which calls your script? You select the mimetype of files which use your script.
Example:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=enqueue to Audacious 
Exec=$HOME/.gnome2/nautilus-scripts/Add to Audacious Queue
Icon=Audacious
Terminal=false
Type=Application
StartupNotify=false
Categories=GTK;AudioVideo;Video;Audio;Player;
MimeType=application/ogg;application/ram;application/smil;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flac;application/x-flash-video;application/x-matroska;application/x-ogg;application/x-quicktime-media-link;application/x-quicktimeplayer;application/x-shorten;application/x-smil;application/xspf+xml;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/mp4;audio/mpeg;audio/mpegurl;audio/ogg;audio/vnd.rn-realaudio;audio/x-ape;audio/x-flac;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-mpegurl;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-realaudio;audio/x-pn-realaudio-plugin;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-scpls;audio/x-tta;audio/x-vorbis;audio/x-wav;audio/x-wavpack;audio/x-xm;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/google-video-pointer;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;audio/mp3;
After perhaps it's useless to use a script for that

Code: Select all

Exec=audacious -e %U
is enough
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: "Scripts" option with right click

Post by maces »

This is an easy way :). Never thought about that, thx for that nice tip. Would you add this to the Wiki?

maces
Roland
Posts: 9
Joined: Sun Dec 21, 2008 8:27 pm

Re: "Scripts" option with right click

Post by Roland »

Corto wrote:why you don't create a *.desktop file, which calls your script? You select the mimetype of files which use your script.
It's really nice idea, but I didn't understand it quite clear. After I create a *.desktop file, where I have to put it?
In /usr/share/applications ?
As I understood I had to see my option (ex. "enqueue to Audacious") in right-click "Open with..." menu branch in PCmanFM? Or not?

I'll be very glad to you, if you explain it more clear.
Thanks.
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: "Scripts" option with right click

Post by maces »

Just try, what you have described. This would be the right way ;)

maces
Roland
Posts: 9
Joined: Sun Dec 21, 2008 8:27 pm

Re: "Scripts" option with right click

Post by Roland »

Tried, nothing changed in right-click menu of PCmanFM :(

Version of PCmanFM 0.5
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: "Scripts" option with right click

Post by maces »

Please post your *.desktop here.

maces
Roland
Posts: 9
Joined: Sun Dec 21, 2008 8:27 pm

Re: "Scripts" option with right click

Post by Roland »

the same was posted in message earlier:
[Desktop Entry]
Encoding=UTF-8
Name=enqueue to Audacious
Exec=audacious -e %U
Icon=audacious2
Terminal=false
Type=Application
StartupNotify=false
Categories=GTK;AudioVideo;Video;Audio;Player;
MimeType=application/ogg;application/ram;application/smil;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flac;application/x-flash-video;application/x-matroska;application/x-ogg;application/x-quicktime-media-link;application/x-quicktimeplayer;application/x-shorten;application/x-smil;application/xspf+xml;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/mp4;audio/mpeg;audio/mpegurl;audio/ogg;audio/vnd.rn-realaudio;audio/x-ape;audio/x-flac;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-mpegurl;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-realaudio;audio/x-pn-realaudio-plugin;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-scpls;audio/x-tta;audio/x-vorbis;audio/x-wav;audio/x-wavpack;audio/x-xm;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/google-video-pointer;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;audio/mp3;
On mp3 (for example) files right-click menu doesn't have any changes.
But in LXDE panel menu topic "enqueue to Audacious" appeared.
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: "Scripts" option with right click

Post by maces »

Have a look at the "open with" menu and it last menu item, click on it and you will find your *.dektop file.

maces
Locked