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:
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 :)
[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