scripts on pcmanfm, like nautilus-scripts

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Locked
nitrofurano
Posts: 38
Joined: Sat Sep 27, 2008 11:18 pm

scripts on pcmanfm, like nautilus-scripts

Post by nitrofurano »

Nautilus-scripts are a very useful feature from Nautilus, would be interesting seeing available from pcmanfm
delirium
Posts: 30
Joined: Tue Oct 07, 2008 11:15 am

Re: scripts on pcmanfm, like nautilus-scripts

Post by delirium »

dont know them...
what are they doing?
nitrofurano
Posts: 38
Joined: Sat Sep 27, 2008 11:18 pm

Re: scripts on pcmanfm, like nautilus-scripts

Post by nitrofurano »

what for are them? nautilus-scripts are useful custom functionality you can have on right clicking on a file icon, and from a .sh, .py, .pl, etc. script, you can perform useful tasks, like opening the same directory as root, calculating md5sum, open the terminal from the directory, changing chmod or chown, convert comicbooks to pdf, etc.

for example:
#!/bin/sh
# open terminal here - Chris Picton, Martin Enlund, Christophe Combelles - GPL
base="`echo $NAUTILUS_SCRIPT_CURRENT_URI | cut -d'/' -f3- | sed 's/%20/ /g'`"
if [ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then
dir="$base"
else
while [ ! -z "$1" -a ! -d "$base/$1" ]; do shift; done
dir="$base/$1"
fi
gnome-terminal --working-directory="$dir"

or:
#!/bin/sh
# root-nautilus-here - Shane T. Mueller, Doug Nordwall, Keith "penguingurus.com" - GPL
foo=`gksudo -u root -k -m "enter your password for nautilus root access" /bin/echo "got r00t?"`
sudo nautilus --no-desktop $NAUTILUS_SCRIPT_CURRENT_URI

these scripts, for working, should be at '~/.gnome2/nautilus-scripts'
Syrec
Posts: 1
Joined: Thu Jul 14, 2011 1:57 pm

Re: scripts on pcmanfm, like nautilus-scripts

Post by Syrec »

Looking at the importance and usability that is gained from adding scripts to pcmanfm I'm not sure why this isn't considered more heavily. Not only would it mature pcmanfm to a more acceptable file manager it would also help a lot of people out there out that aren't interested in nautilus.

Seems strange to me.

Edit: I didn't realize that this was from from 2008, but I don't think it matters. As this is still a valid request even today in 2011 ( even moreso ) I don't think the age the matters.
caos30
Posts: 4
Joined: Wed Aug 29, 2012 12:40 am

Re: scripts on pcmanfm, like nautilus-scripts

Post by caos30 »

Syrec, your prayers were attended ;)

There exist a for of the PCmanFM which have more features (some of them from nautilus philosophy): PCmanFM-mod
Ypu can download it from here:
http://sourceforge.net/projects/pcmanfm-mod/files/

In this post of this forum some user talk about it and put an example regarding to this question of the scripts ;)
http://forum.lxde.org/viewtopic.php?f=2 ... 782#p39782

And i readed now that appeared in 2012 a new fork of PCmanFM-mod: SpaceFM

Article announcing SpaceFM
http://bbs.archbang.org/viewtopic.php?id=2127

Official page of SpaceFM
http://ignorantguru.github.com/spacefm/

wowwww... you can see here an interesting screenshots displaying the power of this file manager!!!
http://ignorantguru.github.com/spacefm/screenshots.html
glococo
Posts: 1
Joined: Thu Dec 06, 2012 2:25 pm

Re: scripts on pcmanfm, like nautilus-scripts

Post by glococo »

+1.

I really miss the "nautilus image script". With one click I can rotate, resize, etc.
dir2ogg I think use natulus scripts also.
Locked