Mudar gerenciador de arquivos padrão no Ubuntu

Publicado por Itamar José em 28/07/2010

[ Hits: 19.924 ]

 


Mudar gerenciador de arquivos padrão no Ubuntu



Há pouco tempo instalei o Openbox no meu Ubuntu e qual não foi minha surpresa ao descobrir que o meu gerenciador de arquivos Nautilus foi alterado para o Pcman! Não que seja ruim, mas eu gosto mais do Nautilus.

Após procurar um pouco aqui no VOL eu não encontrei como mudar isso, achei fuçando mesmo. Assim deixo a minha dica.

Para mudar o gerenciador padrão do Ubuntu edite como root o arquivo de configuração:

/home/usuario/.local/share/applications/defaults.list (onde usuário é o seu como: /home/joao)

o arquivo defaults.list tem as indicações dos programas default, isto é, os programas que devem ser abertos ao se clicar para executar determinada tarefa. Exemplo:
  • navegador web - firefox
  • documento do openoffice - openoffice
  • etc

As linhas abaixo são do defaults.list. Procure pela linha "inode/directory=pcman.desktop" e altere por qual quiser, no meu caso Nautilus: inode/directory=nautilus.desktop

[Default Applications]
application/csv=gnumeric.desktop
application/excel=gnumeric.desktop
application/msexcel=gnumeric.desktop
application/msword=abiword.desktop
application/ogg=aqualung.desktop
application/pdf=evince.desktop
application/postscript=evince.desktop
application/rtf=abiword.desktop
application/tab-separated-values=gnumeric.desktop
application/vnd.lotus-1-2-3=gnumeric.desktop
application/vnd.ms-excel=gnumeric.desktop
application/vnd.ms-word=abiword.desktop
application/vnd.rn-realmedia=smplayer.desktop
application/vnd.sun.xml.calc=gnumeric.desktop
application/vnd.sun.xml.calc.template=gnumeric.desktop
application/vnd.sun.xml.draw=ooo2-impress.desktop
application/vnd.sun.xml.draw.template=ooo2-impress.desktop
application/vnd.sun.xml.math=ooo2-math.desktop
application/vnd.sun.xml.writer=abiword.desktop
application/vnd.sun.xml.writer.template=abiword.desktop
application/vnd.sun.xml.writer.global=abiword.desktop
application/vnd.oasis.opendocument.formula=ooo2-math.desktop
application/vnd.oasis.opendocument.graphics=ooo2-draw.desktop
application/vnd.oasis.opendocument.graphics-template=ooo2-draw.desktop
application/vnd.oasis.opendocument.presentation=ooo2-impress.desktop
application/vnd.oasis.opendocument.presentation-template=ooo2-impress.desktop
application/vnd.oasis.opendocument.spreadsheet=gnumeric.desktop
application/vnd.oasis.opendocument.spreadsheet-template=gnumeric.desktop
application/vnd.oasis.opendocument.text=abiword.desktop
application/vnd.oasis.opendocument.text-template=abiword.desktop
application/vnd.oasis.opendocument.text-web=abiword.desktop
application/vnd.oasis.opendocument.text-master=abiword.desktop
application/vnd.sun.xml.impress=ooo2-impress.desktop
application/vnd.sun.xml.impress.template=ooo2-impress.desktop
application/vnd.stardivision.calc=gnumeric.desktop
application/vnd.stardivision.draw=ooo2-draw.desktop
application/vnd.stardivision.impress=ooo2-impress.desktop
application/vnd.stardivision.math=ooo2-math.desktop
application/vnd.stardivision.writer=abiword.desktop
application/mspowerpoint=ooo2-impress.desktop
application/vnd.ms-powerpoint=ooo2-impress.desktop
application/vnd.wordperfect=abiword.desktop
application/wordperfect=abiword.desktop
application/x-123=gnumeric.desktop
application/x-abiword=abiword.desktop
application/x-applix-spreadsheet=gnumeric.desktop
application/x-ar=xarchiver.desktop
application/x-arj=xarchiver.desktop
application/x-bzip-compressed-tar=xarchiver.desktop
application/x-bzip=xarchiver.desktop
application/x-cd-image=xarchiver.desktop
application/x-compressed-tar=xarchiver.desktop
application/x-compress=xarchiver.desktop
application/x-deb=gdebi.desktop
application/x-debian-package=gdebi.desktop
application/x-dos_ms_excel=gnumeric.desktop
application/x-ear=xarchiver.desktop
application/x-excel=gnumeric.desktop
application/x-extension-m4a=smplayer.desktop
application/x-extension-mp4=smplayer.desktop
application/x-flac=aqualung.desktop
application/x-glade=glade-2.desktop
application/x-gnumeric=gnumeric.desktop
application/x-gtar=xarchiver.desktop
application/x-gzip=xarchiver.desktop
application/x-gzpostscript=evince.desktop
application/xhtml+xml=firefox.desktop
application/x-jar=xarchiver.desktop
application/x-java-archive=xarchiver.desktop
application/x-lha=xarchiver.desktop
application/x-lhz=xarchiver.desktop
application/xls=gnumeric.desktop
application/x-lzop=xarchiver.desktop
application/x-matroska=smplayer.desktop
application/x-mps=gnumeric.desktop
application/x-ms-excel=gnumeric.desktop
application/x-msexcel=gnumeric.desktop
application/x-ogg=aqualung.desktop
application/x-oleo=gnumeric.desktop
application/x-perl=leafpad.desktop
application/x-planperfect=gnumeric.desktop
application/x-quattropro=gnumeric.desktop
application/x-rar-compressed=xarchiver.desktop
application/x-rar=xarchiver.desktop
application/x-rpm=xarchiver.desktop
application/x-sc=gnumeric.desktop
application/x-shockwave-flash=smplayer.desktop
application/x-sylk=gnumeric.desktop
application/x-tar=xarchiver.desktop
application/x-war=xarchiver.desktop
application/x-xbase=gnumeric.desktop
application/x-xls=gnumeric.desktop
application/x-zip-compressed=xarchiver.desktop
application/x-zip=xarchiver.desktop
application/x-zoo=xarchiver.desktop
application/zip=xarchiver.desktop
audio/mpeg=aqualung.desktop
audio/mpegurl=aqualung.desktop
audio/vnd.rn-realaudio=aqualung.desktop
audio/x-flac=aqualung.desktop
audio/x-m4a=aqualung.desktop
audio/x-mp3=aqualung.desktop
audio/x-mpeg=aqualung.desktop
audio/x-mpegurl=aqualung.desktop
audio/x-ms-asf=aqualung.desktop
audio/x-ms-asx=aqualung.desktop
audio/x-ms-wax=aqualung.desktop
audio/x-pn-aiff=aqualung.desktop
audio/x-pn-au=aqualung.desktop
audio/x-pn-realaudio-plugin=aqualung.desktop
audio/x-pn-realaudio=aqualung.desktop
audio/x-pn-wav=aqualung.desktop
audio/x-pn-windows-acm=aqualung.desktop
audio/x-real-audio=aqualung.desktop
audio/x-scpls=aqualung.desktop
audio/x-wav=aqualung.desktop
image/bmp=gpicview.desktop
image/gif=gpicview.desktop
image/jpeg=gpicview.desktop
image/jpg=gpicview.desktop
image/pjpeg=gpicview.desktop
image/png=gpicview.desktop
image/svg+xml=gpicview.desktop
image/tiff=gpicview.desktop
image/vnd.rn-realpix=smplayer.desktop
image/x-bmp=gpicview.desktop
image/x-gray=gpicview.desktop
image/x-icb=gpicview.desktop
image/x-ico=gpicview.desktop
image/x-png=gpicview.desktop
image/x-portable-anymap=gpicview.desktop
image/x-portable-bitmap=gpicview.desktop
image/x-portable-graymap=gpicview.desktop
image/x-portable-pixmap=gpicview.desktop
image/x-psd=gpicview.desktop
image/x-xbitmap=gpicview.desktop
image/x-xpixmap=gpicview.desktop
inode/directory=nautilus.desktop
misc/ultravox=totem.desktop
multipart/x-zip=xarchiver.desktop
text/abiword=abiword.desktop
text/comma-separated-values=gnumeric.desktop
text/csv=gnumeric.desktop
text/html=firefox.desktop
text/plain=leafpad.desktop
text/richtext=abiword.desktop
text/rtf=abiword.desktop
text/spreadsheet=gnumeric.desktop
text/tab-separated-values=gnumeric.desktop
text/x-comma-separated-values=gnumeric.desktop
text/x-chdr=leafpad.desktop
text/x-csrc=leafpad.desktop
text/x-dtd=leafpad.desktop
text/x-java=leafpad.desktop
text/mathml=leafpad.desktop
text/x-python=leafpad.desktop
text/x-sql=leafpad.desktop
text/xml=firefox.desktop
video/dv=smplayer.desktop
video/mp4=smplayer.desktop
video/mpeg=smplayer.desktop
video/msvideo=smplayer.desktop
video/quicktime=smplayer.desktop
video/vnd.rn-realvideo=smplayer.desktop
video/ogv=smplayer.desktop
video/x-anim=smplayer.desktop
video/x-avi=smplayer.desktop
video/x-flc=smplayer.desktop
video/x-fli=smplayer.desktop
video/x-mpeg=smplayer.desktop
video/x-ms-asf=smplayer.desktop
video/x-msvideo=smplayer.desktop
video/x-ms-wmv=smplayer.desktop
video/x-nsv=smplayer.desktop
x-directory/normal=nautilus.desktop
zz-application/zz-winassoc-xls=gnumeric.desktop

PS.: Se alguém já postou essa dica por favor indique o link e mil desculpas!

Abraço.

Outras dicas deste autor

Wallpapers para todos os gostos...

Leitura recomendada

Montar automaticamente partições NTFS no Ubuntu

Forçando a montagem do sistema de arquivos e do disco rígido para corrigir problemas

Como fazer upgrade do Fedora versão 25 para 26

Unindo partições Linux com o mhddfs

Apagar arquivos da lixeira no Gnome, na marra!

  

Comentários
[1] Comentário enviado por nettask em 28/07/2010 - 16:59h

Não conhecia este arquivo... muito bom mesmo... venho procurando uma forma de criar as associações para cada tipo de arquivo... obrigado pela dica

[2] Comentário enviado por luizdn em 28/08/2010 - 23:33h

muito util... obrigado!

[3] Comentário enviado por removido em 28/09/2010 - 17:21h

Ótima Dica!

[4] Comentário enviado por m4k07 em 14/08/2017 - 12:06h

O nome do arquivo no ubuntu 14.04 LTS é mimeapps.list.



Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts