Alterar gerenciador de arquivos no Ubuntu

Iniciado por jkmsjq, 25 de Janeiro de 2012, 16:05

tópico anterior - próximo tópico

jkmsjq

Esse post foi alterado em relação ao original pelo fato do primeiro estar direcionado para a versão 10.04. Mesmo assim mantive a fonte da onde retirei a informação!


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

sudo gedit home/usuario/.local/share/applications/mimeapps.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

Citar
[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

FONTE: www.vivaolinux.com.br/dica/Mudar-gerenciador-de-arquivos-padrao-no-Ubuntu
LinuxUser: 548942 / Dando um tópico como resolvido
"A verdade só é agressiva a quem vive de mentiras". Autor desconhecido.
Twitter: @jeisonkertesz

Henrique1977

Caro  jkmsjq  boa  é  a  tua  dica,  mas  devo  aqui  deixar  informado  que  na  versão  11.10  não  existe  esse  arquivo  defaults.list  mas  o  arquivo  é  mimeapps.list.
Portanto  para  os  usuários  do  Ubuntu  11.10  o  caminho  correto  é:  home/usuario/.local/share/applications/mimeapps.list
Atenciosamente,  Henrique1977.
"O Estado não é a solução, é o problema.  Ronald Reagan"
Você  que  é  iniciante  não  esqueça  de  ler  isso:  http://ubuntuforum-br.org/index.php/topic,90314.0.html

jkmsjq

@Henrique1977

Obrigado pela correção, já feita no post inicial! :-[
LinuxUser: 548942 / Dando um tópico como resolvido
"A verdade só é agressiva a quem vive de mentiras". Autor desconhecido.
Twitter: @jeisonkertesz

sigur

eis o conteúdo do meu mime
[Added Associations]
image/x-eps=evince.desktop;gv.desktop;
text/plain=leafpad.desktop;
application/x-shellscript=leafpad.desktop;
image/png=evince.desktop;

[Default Applications]
image/x-eps=evince.desktop
text/plain=leafpad.desktop
application/x-shellscript=leafpad.desktop


por que é tão  pequeno?
Outra coisa, tenho uns arquivos .mws do maple. Como fazer para que sejam abertos pelo programa, mesmo sendo arquivos de texto que se pode abrir com o leafpad?

Qual a diferença entre o added e o default? Ou melhor, no added eu posso colocar as extensões que eu quiser? Mas como saber como declarar?