Este é um complemento da resposta anterior do theJack .
Para alcançar meu objetivo, tive que:
-
abra o arquivo
/usr/share/applications/Archive Manager
(na verdade chamado/usr/share/applications/org.gnome.FileRoller.desktop
se listado na linha de comando, por exemplo) em um editor de texto -
copie tudo diretamente após
MimeType=
-
substitua cada ponto-e-vírgula por um espaço usando um editor de texto com "Pesquisar e substituir"
-
insira a string resultante como um parâmetro para
xdg-mime
. A partir do manual: " Um aplicativo pode se tornar o padrão para vários tipos de arquivos, especificando múltiplos tipos de mima. "
O comando resultante:
xdg-mime default "org.gnome.FileRoller.desktop" application/x-7z-compressed application/x-7z-compressed-tar application/x-ace application/x-alz application/x-ar application/x-arj application/x-bzip application/x-bzip-compressed-tar application/x-bzip1 application/x-bzip1-compressed-tar application/x-cabinet application/x-cd-image application/x-compress application/x-compressed-tar application/x-cpio application/x-deb application/x-ear application/x-ms-dos-executable application/x-gtar application/x-gzip application/x-gzpostscript application/x-java-archive application/x-lha application/x-lhz application/x-lrzip application/x-lrzip-compressed-tar application/x-lz4 application/x-lzip application/x-lzip-compressed-tar application/x-lzma application/x-lzma-compressed-tar application/x-lzop application/x-lz4-compressed-tar application/x-lzop-compressed-tar application/x-ms-wim application/x-rar application/x-rar-compressed application/x-rpm application/x-source-rpm application/x-rzip application/x-rzip-compressed-tar application/x-tar application/x-tarz application/x-stuffit application/x-war application/x-xz application/x-xz-compressed-tar application/x-zip application/x-zip-compressed application/x-zoo application/zip application/x-archive application/vnd.ms-cab-compressed application/vnd.debian.binary-package application/gzip