This blog has moved! Redirecting...
You should be automatically redirected. If not, visit http://scrolls.mafgani.net/ and update your bookmarks.

Thursday, October 06, 2005

Open files from a terminal

There's lot that can be learned from the conversations on the fedora-list. Today I learnt of a nifty little tool called gnome-open. Basically you just type something like:


[darkknight@darkworld ~]$ gnome-open file.cpp


and voila! It figures out the default application (under GNOME) for the files of type *.cpp and opens the file using that default editor. I haven't verified, but it seems that instead of a file an URL can also be specified. Mmm .. it definitely creates the possibility of writing portable scripts; at least on GNOME systems anyway :)

0 Comments:

Post a Comment

<< Home