Open everything with gnome-open

December 20th, 2006 toydi Posted in alias, gnome-open, Misc | Hits: 24789 | 5 Comments »

In GUI environments, we open (almost) any data file with a double-click. The system will somehow magically, launch your preferred program and load the data file onto it for you.

For those who prefer command line over mouse-clicking, GNOME provides a nice, simple command that does the job (thanks to Carthik’s discovery):

~$ gnome-open
Usage: gnome-open <url>

The <url> means any URL, or path in the filesystem. Thus, you can use it to open a website, FTP site, a PDF file, a OGG file, a directory etc. Try it!

To save keystrokes, I’ve added a shortcut command “go” for myself:

~$ echo "alias go='gnome-open'" >>  ~/.bash_aliases 

For those who curious, gnome-open looks like a simple wrapping program which calls gnome_url_show() .. which finally leads to gnome_vfs_url_show_with_env().

5 Responses to “Open everything with gnome-open”

  1. This is cool when I wanna edit open office ‘s file. Interesting alias as well :)

  2. Cat Biting Behavior – This Cat MUST Be Happy, Right?…

    Let me give you some advice that can potentially stop your cat from ever biting you again….

  3. [...] Open everything with gnome-open In GUI environments, we open (almost) any data file with a double-click. The system will somehow magically, launch your … [...]

  4. I have a “go” command which can do a bit more than an alias to gnome-open. It can actually start programs in a detached window as well.
    http://linux.subogero.com/?page_id=153

  5. Moreover, you do not have to go into debt due of overhead expenses.
    There are many different reasons that a towing service
    can be valuable for you. Sometimes these people might
    find a buyer, and in these cases the car can be towed to the buyer’s house (typically with the buyer footing the
    bill).

Leave a Reply