segunda-feira, 22 de fevereiro de 2010

mimetypes in gnome

Tired of trying to open a file in the formats of OpenOffice, like odt or odp, and clicking on the button Display?

You can make it as default option on the Gnome environment, just use the gconftool-2 to set the option for nautilus. You can have 3 kinds of options:
  • display
  • ask
  • launch

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --set --type=string /apps/nautilus/preferences/executable_text_activation 'display'

to make display as default option.