Home » Tips

Tips: Optimizar GNOME predefiniendo Thunar

6 Febrero 2010 329 views No Comment

Ayer armabamos una lista con 8 gestores de escritorios en GNU/Linux para reducir el consumo de RAM. Hoy les dejo un interesante tip que nos ayudará en el caso que no queramos abandonar por completo a Gnome.

El tema está en usar un administrador de archivos diferente al que viene predeterminado con Gnome. Reemplazando a Nautilus por Thunar que es más rápido y liviano. (viene predeterminado con XFCE).

Abrimos consola y creamos un nuevo archivo:

sudo mv /usr/bin/nautilus /usr/bin/nautilus.real
sudo gedit /usr/bin/nautilus

Luego agregamos el siguiente contenido al archivo que acabamos de crear:

#!/usr/bin/ruby
if ARGV[0].nil? or ARGV[0][0..0]=='/'
 system("thunar #{ARGV[0]}")
elsif ARGV[1][0..6]=='file://'
 system("thunar #{ARGV[1]}")
else system("nautilus.real #{ARGV.join(" ")}")
end
#system("zenity --info --text=\"#{ARGV.join(" ")}\"") #DEBUG

Eso es todo, a probarlo y me dicen que tal les fue.
Gracias Lucas por el dato.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.