open: a nice script?
É, eu sei, eu não gosto de textos em inglês em canais de informação em Português, mas como escrevi o post abaixo para o fórum do dropline GNOME e estou morrendo de preguiça de passá-lo para o Português, vai em inglês mesmo. Quem usa a linha de comando do Linux e possui o GNOME instalado pode gostar. O resto, melhor ignorar mesmo
Some time ago I bought a macbook (I didn’t want my money to go to MS, then I preferred to “give” it to Apple) and started to use Mac OS X to see if it was as good as people said. I found out that although it is a nice OS, I still preferred Linux (slackware) + GNOME, then I installed slackware + DLG on the macbook and now I rarely boot into OSX.
While I was using that thing, I got used to the “open” command line application. Its behavior is quite simple, you type “open
Every now and then, when I was working with the command line (which tends to be VERY frequent), I remembered that the “open” command didn’t exist (at least by default) in Linux and got frustrated. I even looked for similar tools, but wasn’t able to find one. Knowing that programs like Nautilus already implemented such behavior, it was clear that it should be available to the rest of the GNOME desktop.
Well, I was lucky, as gnomevfs implemented everything I needed to create my own “open” command. The only hard part was to figure out what the functions did, since they were mostly undocumented.
I don’t know if anybody is interested in such an application, but since I wrote mine (in a quick, dirty and undocumented way) and found it useful, I thought that it would be nice to share it. If you want to take a look at it, please check http://dlg64.redos.si/trac/browser/open/trunk/open, download it to your PC, make it executable and run it.
12. Abril, 2008 em 12:00
saber programar tem dessas coisas, nao tenho ‘tal’ funcionalidade, é só criá-la
* ainda to batendo cabeça pra instalar programinhas simples no linux!