Laptops Under 200

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 24 August 2011

Nautilus-Actions: Adding New Functions to Nautilus Right-Click Menu has Never been this Easy!

Posted on 02:43 by Unknown
Gnome desktop didn't used to like this simple you know. Apparently it used to come with a huge list of features and configuration options which were cleaned up about 80-90% when the made the switch to the Gnome 2+ back in the day (around 2000-2001 I think).

These days it's pretty much simple and it has been heavily criticized by many + by myself too (apparently someone called Linus Torvalds was one of them :)). Although I wrote that post few months ago but apparently, the disappointment came from the experiences that I had in the past few years (since I decided to stick-with GNU/Linux).

But the point is that, at lest in the recent years it seems that the developers has come up with their own versions of little "solutions" in order to fix some of those "missing" features in Gnome desktop (ahh, the power of Open-Source software :D).

Anyhow, if you're just like me having a continuous "hate and love" relationship with the Nautilus file manager and trying to find a way out of that too simple right-click menu and thinking if there's a way that you can add functions of your own to that with ease?... well my friend, you sure can do that!.

There is apparently an application called "Nautilus-Actions" which is I think A Nautilus script (they are like "addo-ons" which expands the features of Nautilus via their API).

And I gotta say folks, after playing it with like 5-10 minutes, seriously if you know your way around GNU/Linux commands (trust me, I know very very little about 'em commands, still learning just like you) then this is one heck of an application that can totally change how Nautilus behave!.

Main features...




Hi!, my name is "awesome" ;-)...

*. Add/remove new menus to the Nautilus file manager right click menu.

*. Add/remove the appropriate commands.

*. Use Mimetypes:

For instance, say that you wanted the command "Mplayer" to be displayed once you right click on a multimedia file extension ".mkv", then you can use this feature to associate the command for that file-type only.

*. Include/Exclude folders:

Say that you wanted the menu to only display once you right-click in a certain location in Nautilus, then this is the feature that you can use for that.

*. Display the menu on selected objects or on empty spaces (or them both).

*. Import/Export pre-configured scripts.

These are very little of its features. But I'll give you an example which would help to understand it much easier (I was addressing the newbies only, for the underdogs: respect!, respect! :) ).

Lets install it...

You can install the "Nautilus-Actions" app in Ubuntu 11.04 Natty Narwhal, 10.10 and 10.04 by using the below command.
sudo apt-get install nautilus-actions
Now once installed you should be able to launch it via the main desktop menu or by using the below command after pressing "Alt" + "F2" keys on your keyboard.
nautilus-actions-config-tool
You can obtain a huge list of pre-configured scripts from this page if you like too. 

But how to add a program "shortcut" of your own?

Well, although I totally don't want to, but let's say that I wanted to launch the "Totem" media player using nautilus right-click menu. Okay then, after launching the app you should see a window similar to the first screenshot.

1. Under the "Action" tab: in the sub heading "Nautilus item" you'll see two check-mark boxes. The first one is enabled by default which makes sure that the new menu item will only appear when you select something in Natilus and right-click on it.

But if you want the menu-item to be displayed only when you right-click on an empty space, then remove the check-mark on the first one and add a check-mark on the second one that says "Display item in location context Menu".




If you put a check mark on that which says: "Display item in the toolbar", then it'll also appear in your Nautilus tool-bar too!...

2. Now, you'll see another  sub heading called "Context-label". Now as shown below, just replace the text in that box with "Open Totem" (you can add any name here since this is just the display name that'll be shown in the new menu).


3. Under "Tooltip" (above screenshot): type whatever the text you want (which is optional) and obviously it'll show a nice tooltip description about that menu-item.

4. Under "Icon": you can choose an icon to be displayed with the menu. But for performance issues, I humbly advice you to try not to use icons.

Associating the menu with the actual command...

5. Now, click on the next tab called "Command". Under the sub-heading "path" just enter the below command (since we're trying to Totem player) and leave other options alone.
totem

As mentioned above, you can use other tabs to set things such as making the menu-item visible in a certain location, etc ... but if you're totally new to this, then both the "Action" and "Command" tabs are the ones that we need.

6. Now just click on its menu and go to: "File" -> "Save" and close the application (this is important, otherwise in my case, Nautilus failed to update the settings).


7. To make these changes apply to Nautilus we have to restart it.

For that use the below command (beware: before running make sure you have closed or completed any processes related to Nautilus such as file-copy, etc otherwise they'll be terminated!).
nautilus -q

That's it! and below is a screenshot of my Nautilus after adding both Totem and Gedit (Gnome's text editor) to the right-click menu.


Not just Totem, as long as you know the appropriate command name of the application that you want to add, you can add any application to the Nautilus file manager's right-click menu + you can even add other advanced features such as "refresh" command for instance as well.

But how the heck can I find actual command for a given program?

Well, for knowing the actual command-name of the installed applications, as long as they show-up in your main desktop Menu, there's a simple trick that we can use.

In the recent years, Gnome came with a separate application called "alacarte" which lets us easily add/remove applications in the main application menu. Not only that, by using this app we can easily figure-out the name and the actual command associated with it which helps to launch the program itself too.

So, just put the below command in after pressing "Alt" + "F2".
alacarte

Now, from its main window, navigate to any sub-menu and locate your program, and then simply double click on the icon (I just double clicked the "Ubuntu Software Center" icon) which should reveal the "properties" of the application.




See that selected text, yup, that's the secret formula :P...

Now under the sub heading "Command", the text in that field is the location + the command of that application that you just double clicked. For instance, if we want to manually launch the Ubuntu software center, then we should use the command...
/usr/bin/software-center %u 

OR
software-center %u

Since "/user/bin" actually the location which will be recognized automatically by Ubuntu (or in GNU/Linux in general), most of the time, you can ignore the "/usr/bin" part.

Wraping-up...

So if you want to easily customize the Nautilus file management utility's menu (for fun and adding some efficiency, hopefully :D), then first figure-out its "actual command" and then open the awesome Nautilus-Actions utility and after filling the other fields, under the command section, simply copy and paste, make your changes and you're good to go.

Well, that's about it. If you have questions just ask. Enjoy it :).
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in learn linux, linux, ubuntu | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • How to Install "The Board" in Ubuntu? (GTK+ written dedicated Digital Diary)
    If you frequently use your computer for hours and hours daily... then even after installing cool theme and other stuff to make the desktop l...
  • traGtor - ffmpeg Encoder GUI for GNU/Linux (one of the best!)
    I maybe wrong on this one but I think the origin of the Qt written KDE desktop actually comes from the German programmers. But the point is ...
  • Install Gdiskdump in Ubuntu 11.04 - An Easy To Use Disk Cloning Tool for GNU/Linux!
    Although for Microsoft Windows there are several excellent commercial and free applications available yet with GNU/Linux when it comes to di...
  • Wipe - Secure File Delete Application for GNU/Linux
    Not just in GNU/Linux but in any operating system, just because you deleted the files from the hard disk drive doesn't mean that they...
  • How to Access Few "Advanced Preferences" Settings in Nautilus File Manager?
    Nautilus is the default file management utility in Gnome desktop environment (which is also shared by the Ubuntu Unity as well). Although ...
  • Install Agave in Ubuntu - Excellent Color Palettes Creator for GNU/Linux!
    I think anyone would agree on the fact that both colors and our emotions (buggers... control our lives one way or the other :P) are bound to...
  • Have You Watched the "Free Software Song"?
    I saw this song (in video) for the first time few years ago while watching the Revolution OS, a movie which basically exposes the birth of G...
  • GDM Tweaker - A Tool For Changing GDM Background/Theme Easily
    Although Ubuntu decided to drop GDM from the future releases still with Ubuntu, setting up your GDM screen is almost impossible (you know c...
  • How to Build a New Computer under $200
    This article will present a brief tutorial explaining how to repair or build a Windows PC. More instruction will be added as time permits. B...
  • MediaInfo - An Advanced Audio/Video Tag "Reader" for GNU/Linux and MS Windows
    If you have installed the proper codecs in MS Windows and GNU/Linux, the operating system can read Tag information which holds information s...

Categories

  • 11.04 natty narwhal
  • 11.10
  • 3d rendering
  • addons
  • address books
  • adobe
  • adobe flash
  • adobe flash player
  • amarok
  • amarok for windows
  • andorid
  • android
  • android applications
  • android apps
  • android phones
  • android tablets
  • app launchers
  • apple
  • applets
  • application indicator
  • applications
  • applications for windows
  • archive managers
  • arios
  • art
  • arts
  • asus
  • asus eee pc
  • ati
  • ati catalyst
  • audio
  • audio converts
  • audio editors
  • audio encoders
  • audio players
  • audio tag editing
  • audio utilities
  • ayatana scrollbars
  • backup
  • backup tools
  • banners
  • batter saver
  • battery calibration
  • benchmark testing
  • bittorrent
  • bittorrent clients
  • blogger
  • blogger news
  • blogger platform
  • blogging
  • blogging tips
  • blogging utilities
  • blu-ray
  • boot loaders
  • BSOD
  • business card creator
  • Canonical
  • cd/dvd burners
  • chat clients
  • checksum checker
  • chrome
  • chrome addons
  • chrome os
  • chromium
  • clamav
  • cloud computing
  • cloud comupting
  • cloud storage
  • clutter
  • collaborative editor
  • command line
  • commands
  • community
  • compiz
  • computer repair
  • computers
  • cross-platform
  • data backup
  • data encrption
  • desklets
  • desktop environments
  • digital audio workstation
  • disk cloning
  • disk drive erasers
  • disk image burning
  • disk images
  • disk partition editors
  • display managers
  • distributions
  • docks
  • download managers
  • drawing tools
  • drivers
  • driving lessons
  • dropbox
  • dvd authoring
  • dvd backup
  • dvd creator
  • e-book managers
  • e-mail
  • e-mail clients
  • e-mails
  • eee pc
  • elementary os
  • email clients
  • emails
  • encoding
  • encorders
  • experiences
  • facebook
  • fedora
  • fedora core
  • fedora core 15
  • fedora core learn
  • feed readers
  • file management tools
  • file managers
  • file manegers
  • file recovering
  • file splitters
  • file systems
  • filesystems
  • finance
  • firefox
  • firefox 5
  • firefox 6
  • firefox addons
  • firefox5
  • firmware utilities
  • flash videos
  • flickr
  • fonts
  • frustrations
  • fun
  • gadgets
  • GDM
  • gentoo
  • gimp
  • gmail
  • Gnome
  • gnome 3 shell theme
  • gnome 3.2
  • gnome applications
  • gnome desktop
  • gnome shell
  • gnome3
  • gnu
  • gnu emacs
  • gnu-linux
  • gnu-linux distributions
  • goober
  • google
  • google chrome
  • google chrome extensions
  • google maps
  • GPU
  • graphic design
  • graphic utilities
  • grey screen of death
  • grub editors
  • gtk
  • gtk applications
  • gtk themes
  • gtk3
  • gtk3 themes
  • hardware monitors
  • hdd clone tools
  • hdd tools
  • health
  • hobbies
  • html5
  • icons
  • ideas
  • im clients
  • iMac computer repair
  • iMac error
  • image editiors
  • image organizers
  • image resizers
  • image utilities
  • image viewers
  • iphone
  • itunes
  • java
  • journal applications
  • kde
  • kde 4.6
  • kde applications
  • kde-qt
  • kernel
  • kubuntu
  • kubuntu 11.04
  • laptops
  • learn
  • learn linux
  • legal
  • libre office
  • life
  • lightdm
  • linux
  • Linux distributions
  • linux keyboards
  • linux mint
  • linux multimedia players
  • linux music players
  • loco teams
  • logmein
  • lubuntu
  • lxde vs xfce
  • mac osx
  • mandriva
  • media players
  • metacity
  • microsoft windows
  • mounting
  • mplayer
  • ms windows
  • multi-touch gestures
  • multimedia
  • multimedia codecs
  • multimedia converters
  • multimedia players
  • multimedia utilities
  • music players
  • mypaint
  • natty narwhal
  • nautilus
  • nautilus scripts
  • nautilus tips
  • netbooks
  • netbooks under 200-250
  • network monitoring
  • networking
  • news
  • nokia phone suite
  • note taking
  • ntfs
  • nvidia
  • office productivity suits
  • office suits
  • oneiric ocelot 11.10
  • online radio
  • online storage
  • open source
  • open-source
  • opensource
  • opensuse
  • operating systems
  • optical disk burners
  • optical disks
  • optimizations
  • package managers
  • painting tools
  • parent control
  • password generators
  • password managers
  • pdf editors
  • pdf readers
  • pdf tools
  • pim software
  • pinguy os
  • plasma
  • plugins
  • portable
  • portable applications
  • portable laptops
  • privacy
  • professional video editors
  • programming tools
  • project management software
  • proprietary drivers
  • python applications
  • qt
  • qt applications
  • qt4
  • registry cleaner
  • remote access
  • remote desktop access
  • reviews
  • roboform
  • rom flashing
  • rss readers
  • satellite trackers
  • scanning tools
  • screen recorders
  • screenshot taker
  • scripts
  • search engines
  • security
  • shell extensions
  • shell themes
  • skype
  • smart phones
  • software
  • software emulators
  • sound servers
  • source code editor
  • stack exchange
  • startup managers
  • stock market
  • swimming
  • system cleaner
  • system information
  • system monitors
  • tablet pcs
  • tablets
  • task killers
  • tech help
  • tech news
  • tech tips
  • technology
  • terminal emulators
  • text editors
  • text translators
  • themes
  • thunar
  • thunderbir
  • thunderbird5
  • tips
  • transformation packs
  • tutorials
  • tweaks
  • twitter
  • ubunt
  • ubuntu
  • ubuntu 11.10
  • ubuntu 11.10 alpha 3
  • ubuntu derivatives
  • ubuntu derrivatives
  • ubuntu minimal install
  • ubuntu netbooks
  • ubuntu news
  • ubuntu one
  • ubuntu tablet
  • ultrabooks
  • unity 2d
  • unity desktop
  • unity desktop apps
  • usb
  • utilities
  • vector graphics
  • video editors
  • video utilities
  • videos
  • virtualbox
  • virtualization
  • virus scanners
  • vlc
  • voip
  • wallpaper contest
  • wallpapers
  • weather apps
  • web browser addons
  • web browsers
  • webcam
  • weight loss
  • weird
  • widgets
  • window managers
  • windows
  • wine
  • xml editors
  • xubuntu
  • youtube

Blog Archive

  • ►  2012 (7)
    • ►  August (2)
    • ►  June (1)
    • ►  May (3)
    • ►  January (1)
  • ▼  2011 (515)
    • ►  December (3)
    • ►  November (1)
    • ►  October (16)
    • ►  September (57)
    • ▼  August (59)
      • A Video Editor for Ubuntu: Cinelerra!
      • Flush: A Torrent Client for Ubuntu
      • PDFedit: A Powerful PDF Editor for Ubuntu Linux!
      • How to Read Ext4/Ext3 File Systems in MS Windows?
      • How to Mount an ISO Disk Image in Ubuntu?
      • KeePassX: Best (free) Password Manager for Ubuntu ...
      • Recuva: Recover Deleted files for Free!
      • Speccy: an Excellent, System Information Utility f...
      • How to Create a USB, Bootable ISO image in Ubuntu?
      • How to Install the Stack Exchange Network Applet (...
      • How to Remove the "Ubuntu Modifications" in Firefo...
      • Startup-Manager: A Utility to Edit GRUB Boot-loade...
      • How to Install GIMP 2.7 in Ubuntu 11.04 Natty Narw...
      • Fedora 16 Alpha is Released!
      • Nautilus-Actions: Adding New Functions to Nautilus...
      • How to Add Images as Wallpapers Directly in Nautil...
      • How to Install GVIM (a powerful text editor) in Ub...
      • How to Install Pybackpack (backup manager) in Ubuntu?
      • How to Install Scribes (awesome Text Writer!) in U...
      • How to Install Geany (text editor & a basic IDE) i...
      • How to Install DumpHD (HD-DVD/Blu-ray Decryptor) i...
      • gTweakUI: A Utility for Accessing few "Advanced" S...
      • How to Install Transcoder (video converter) in Ubu...
      • How to Access "Power Management" Settings in Ubunt...
      • How to Install Snappy 0.2 (multimedia player) in U...
      • Firefox 6 Is Available in the Official Ubuntu 11.0...
      • Ubuntu One Music App for iPhone is Released!
      • About: Few Upcoming Major Features to the Unity De...
      • How to Install Thunderbird 6.0 in Ubuntu 11.04 Nat...
      • How to Install ClipGrab in Ubuntu 11.04 Natty Narw...
      • How to Install Firefox 6 in Ubuntu 10.10 and 10.04?
      • How to Install Faenza 1.0 Icon Theme in Ubuntu?
      • How to Install Guake Drop Down Terminal Emulator i...
      • How to Install GtkHash (Checksum Generator) in Ubu...
      • How to Install Flickr Remote Organizer (Frogr) in ...
      • How to Install "Sysinfo" in Ubuntu 11.04 Natty Nar...
      • How to Install Potamus (music player) in Ubuntu Li...
      • Unity-Linux Distribution is Going to be "Discontin...
      • How to Install Simple Backup Suite (SBackup) in Ub...
      • Muine: A Fast and Simple Music Player for GNU/Linux!
      • How to Install Kplayer in Ubuntu 11.04 Natty Narwh...
      • How to Install Mousepad in Ubuntu 11.04 Natty Narw...
      • Gentoo Linux 11.2 is Released! (DVD Edition)
      • Sneak-Peek into the Upcoming Xubuntu's Redesigned ...
      • Asus Eee PC X101 Unboxing Video! (in Vietnamese)
      • How to Install Elementary Luna Theme in Gnome 3 (S...
      • Dragon Player (Qt Written Multimedia Player for KD...
      • How to Install LightDM in Ubuntu 11.04 Natty Narwhal?
      • Gnome-Art Front-end: Installing Hundred of Themes ...
      • LXDE vs Xfce
      • Ubuntu 11.10 Oneiric Ocelot Alpha 3 is Released!
      • How to Install Editra (text editor for programmers...
      • RhythmCat: Simple and a Lightweight Music Player f...
      • How to Install Amarok 2.4.3 "Berlin" in Ubuntu/Kub...
      • How to Install FocusWriter (Professional Writing A...
      • SystemClean: A Simple Script to Clean Your Ubuntu ...
      • Foobnix (a music player) for Android is Released!
      • How to Install Deluge (bit-torrent client) in Ubun...
      • How to Install GNU Emacs in Ubuntu Linux ? (11.04,...
    • ►  July (81)
    • ►  June (112)
    • ►  May (149)
    • ►  April (33)
    • ►  March (4)
  • ►  2008 (2)
    • ►  March (1)
    • ►  January (1)
Powered by Blogger.

About Me

Unknown
View my complete profile