"Scripts" option with right click

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM

"Scripts" option with right click

Postby maximi89 » Sun Mar 22, 2009 6:48 am

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
maximi89
 
Posts: 6
Joined: Tue Mar 03, 2009 3:46 am

Re: "Scripts" option with right click

Postby maces » Sun Mar 22, 2009 1:11 pm

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
maces
 
Posts: 503
Joined: Sat Oct 25, 2008 7:04 pm

Re: "Scripts" option with right click

Postby Corto » Mon Mar 30, 2009 4:58 pm

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
Corto
 
Posts: 14
Joined: Thu Feb 19, 2009 6:21 pm

Re: "Scripts" option with right click

Postby maces » Wed Apr 01, 2009 6:34 pm

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

maces
maces
 
Posts: 503
Joined: Sat Oct 25, 2008 7:04 pm

Re: "Scripts" option with right click

Postby Roland » Thu Jul 02, 2009 2:34 pm

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.
Roland
 
Posts: 9
Joined: Sun Dec 21, 2008 9:27 pm

Re: "Scripts" option with right click

Postby maces » Thu Jul 02, 2009 5:44 pm

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

maces
maces
 
Posts: 503
Joined: Sat Oct 25, 2008 7:04 pm

Re: "Scripts" option with right click

Postby Roland » Fri Jul 03, 2009 9:03 am

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

Version of PCmanFM 0.5
Roland
 
Posts: 9
Joined: Sun Dec 21, 2008 9:27 pm

Re: "Scripts" option with right click

Postby maces » Fri Jul 03, 2009 4:00 pm

Please post your *.desktop here.

maces
maces
 
Posts: 503
Joined: Sat Oct 25, 2008 7:04 pm

Re: "Scripts" option with right click

Postby Roland » Fri Jul 03, 2009 4:21 pm

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.
Roland
 
Posts: 9
Joined: Sun Dec 21, 2008 9:27 pm

Re: "Scripts" option with right click

Postby maces » Fri Jul 03, 2009 4:36 pm

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

maces
maces
 
Posts: 503
Joined: Sat Oct 25, 2008 7:04 pm

Next

Return to PCManFM

Who is online

Users browsing this forum: No registered users and 1 guest