Welcome to the web's most helpful Online Free computer tips and tricks website. This site contains all Latest and Cool Computer tricks as well as some Internet Tricks, Registry tricks, Orkut tricks, Windows customize and Optimization tricks, Computer Tweaks. Solve your computer problems by browsing the website for related Computer solution. All tips work well in both Windows XP as well as windows vista or win 7 operating systems. Need some Computer Help? Then this website suites your must need. These windows and internet Hacks Tricks are safe and free from any Spy ware. Learn All Basic and Advanced computer tips and tricks and be a computer master. All the computer tips at Hack2011 are very interesting and are mainly meant for education purpose. Visit my new Computer Tips Blog and leave your comments and suggestions there. Enjoy your stay and read all the articles posted here.


Get the Path to an Icon in Linux with a Nautilus Script

Linux is nothing if not customizable.  And this is not to say that the customizability comes with a price (although who hasn’t spent far too much time trying to figure out exactly which wallpaper out of a pack of 300 would be perfect for a favorite combination of themes and icons?), but sometimes there’s just so much you can change that you begin to lose track of where things are!  “Did this icon set come with the theme?”  “Where did I download this?”  If I delete this theme, will the wallpaper disappear as well?”
This article doesn’t have the answers to all those questions, but it will help you with one specific task: finding an icon.

GNOME Linux uses Nautilus as its default file manager, and Nautilus can use scripts.  Scripts are little bits of code, tiny programs if you will, which can be accessed instantly from the scripts folder in your right-click contextual menu.  They’re almost always intended to act upon whatever you had highlighted when you clicked.  So, for instance, if you download a script that can convert music from one format to another, you would right-click on a music file (MP3, AAC, WMA, etc.), and the script would assume you wanted to convert that item.
The where-is-this-icon script works the same.  Right-click on any folder, file or desktop launcher, and it will give you the direct path to where the icon that item uses is stored on your computer.  This is great for when you see an icon you like, and might want to use with another file, but just don’t have a real good idea where the icon is located.

Downloading The Script

First you’ll need to head to the script’s home page on gtk-apps.org; the direct link is right here.
Script Page on GTK Apps
Once you’re there, simply scroll down to the download link and click it.
Click the Download Link
You’ll get the typical “wait 3 seconds” screen, and then the download should begin.
Wait three Seconds
The download, however, may not simply download as you’d expect; the script itself might load in your web browser window.
Script Downloads in Browser Window
If that’s the case, just save the page as plain text.  Go to the File menu of your browser (in Firefox, at least), and click the Save Page As option.
Save the Script
Then just choose a download location, and you’re done.

Installing and Using The Script

Once the script has downloaded, locate it on your computer and right-click it.  Choose the Properties option from the contextual menu.
View Properties
When the Properties window appears, select the Permissions Tab.
Permissions Tab
Then, at the bottom, make sure the Allow executing file as program option is checked.
Execute as Program
That accomplished, close the Properties window and open a Terminal; we need to properly install the script.
Open Terminal
Type the following:
mv /home/username/Desktop/where-is-this-icon /home/username/.gnome2/nautilus-scripts/
Note: make sure to substitute the actual path to the script (where you saved it), as well as replace “username” with your own username.  Also, if the nautilus-scripts folder doesn’t exist yet, this command will create it.
Now that we have the script installed, it’s fairly trivial to use.  As stated earlier, the script can show us the path to the icon for a file, folder or launcher.  Here’s what it looks like finding a launcher’s icon.  Right-click the item, then navigate down to the scripts folder, and choose the where-is-this-icon script.
Select Script
A new window should pop up, informing you that the item has no set icon (as is sometimes the case), or the path to the icon, as shown below:
Location of Icon
It’s that simple!  The where-is-this-icon script is truly a one-trick pony.  It doesn’t do anything more than this, and probably never will.  But it is certainly a nice time-saver for those moments when you love an icon… but you just don’t know where it’s located.  With where-is-this-icon installed, now you know!

No comments:

Post a Comment