linux.gotfoo.org

tips, tricks and howto’s

Categories

Search



Visit Xubuntu.org

Hacking Nautilus with G-Scripts

August 7th, 2006 by jay
, ,

While updating Wired HowTo Guide Linux Style I came across G-Script which is a collection of scripts for use in Gnome’s Nautilus file manager.

And as things go I was searching for a way to add shred to the context-menu of Nautilus just like you can with Thunar plug-ins and ended up finding a new toy to tinker with.

A nautilus script is just an executable shell script (usually bash) that is placed in a special scripts directory so that the Nautilus graphical shell can find it. This is a really neat function of Nautilus, because it allows you to extend the functionality of the file browser to do just about anything. ~ G-Script FAQ


Even though G-Scripts are easy to install, don’t be fooled their simplicity. These scripts can perform some pretty powerful actions, like encrypting files, creating archives and executing programs all from a context-menu.
The Official GNOME 2 Developer\'s Guide
You can download a collection of scripts here and the site also has links to other scripts as well as more scripts which are divided by functionality that are not included in the archive.
The sections are:

Once you’ve downloaded the archive; extract it to /home/user/.gnonme2/nautilus-scripts and that’s it.

Now open Nautilus, select a file or folder and right-click on it. The context menu will appear with an item titled Scripts, which has a sub-menu of all of the scripts in the nautilus-scripts folder.

The one script I wanted shred appears to be broken so I am working on my own hack for that.

One of the cool things about these scripts is that upon inspection of the source code they appear to be pretty easy to hack. And if you’ve done any bash scripting then you’ll be right at home.
Classic Shell Scripting
I did some goolging for G-Scripts and most links linked back to the main site. This surprises me because G-Script is such a powerful, easy to implement and easy to hack feature that I am surprised there aren’t a lot more sites raving about it. The thing about G-Scripts that appeals to me is that I have the ability customize a small part of Linux beyond the usual GUI elements. I think it’s a really cool feature to be able to write a simple shell script for Nautilus that is actually of some use to me and maybe other people.


More scripts here
.

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • De.lirio.us
  • digg
  • Reddit
  • RawSugar
  • Furl
  • YahooMyWeb
  • Spurl
  • Ma.gnolia
  • NewsVine

Posted in Linux, HOWTO, Tips N Tricks, GNOME |

3 Responses

  1. Cab Says:

    Cab…

    I am Karin, very interesting article that contained the information I was searching for in Google, thanks….

  2. Mark Stosberg Says:

    Thanks for the tips. There’s a small typo in one of the paths, though: “gonme2″

  3. Jumana Fanni Says:

    please tell me why, i’m feeling . Jumana Fanni.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.