Add actions to extend Nautilus functionality
Dec 30, 2009, 17:02 (0 Talkback[s])
(Other stories by Jack Wallen)
"GNOME's file manager, Nautilus, (as you would expect) is much
more than just a plain file manager. There are so many
configuration options and ways to extend the default GNOME file
manager. One way to extend Nautilus is by adding actions. A
Nautilus action is a way to add new features that can do pretty
much whatever you need it to do. These actions tend to act upon
files (either single files or batch files). Actions can call
user-created scripts or work with built in utilities.
"In this tutorial I am going to introduce you to Nautilus
actions by way of the shred command. When this action is used a
file is deleted beyond recovery (thanks to the shred command). Once
you see how this shred action is created, you can then take that
and build upon it to the limits of your imagination.
"Before we begin with the action, let me explain a bit about the
shred command. Shred does one thing – it overwrites a file to
hide its contents and then (optionally) deletes the file. (Of
course, for our action, we will be using shred to delete the file.)
But why not just delete the file?"