Open everything with gnome-open
December 20th, 2006 toydi Posted in Misc, alias, gnome-open | Hits: 11658 |
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().
Live Chat!







December 21st, 2006 at 8:52 am
This is cool when I wanna edit open office ’s file. Interesting alias as well :)
February 5th, 2008 at 6:20 pm
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….
September 16th, 2008 at 7:54 pm
[...] 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 … [...]
August 10th, 2009 at 9:49 pm
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