Totem c'est un lecteur vidéo, on voit qu'il est définit en seconde position après xplayer (
https://doc.ubuntu-fr.org/totem)
Ton fichier «/usr/share/applications/defaults.list» me semble bien vide
Exemple du mien (sur une LM18.3 XFCE) :
Code : Tout sélectionner
arghlub@lenovoLM18xfce ~ $ cat /usr/share/applications/defaults.list
[Default Applications]
application/csv=libreoffice-calc.desktop
application/excel=libreoffice-calc.desktop
application/msexcel=libreoffice-calc.desktop
application/msword=libreoffice-writer.desktop
application/ogg=xplayer.desktop;totem.desktop
application/pdf=xreader.desktop;evince.desktop;atril.desktop
application/postscript=xreader.desktop;evince.desktop;atril.desktop
application/rtf=libreoffice-writer.desktop
application/tab-separated-values=libreoffice-calc.desktop
application/vnd.lotus-1-2-3=libreoffice-calc.desktop
application/vnd.ms-excel=libreoffice-calc.desktop
application/vnd.ms-word=libreoffice-writer.desktop
application/vnd.rn-realmedia=xplayer.desktop;totem.desktop
application/vnd.sun.xml.calc=libreoffice-calc.desktop
application/vnd.sun.xml.calc.template=libreoffice-calc.desktop
application/vnd.sun.xml.draw=libreoffice-draw.desktop
application/vnd.sun.xml.draw.template=libreoffice-draw.desktop
application/vnd.sun.xml.math=libreoffice-math.desktop
application/vnd.sun.xml.writer=libreoffice-writer.desktop
application/vnd.sun.xml.writer.template=libreoffice-writer.desktop
application/vnd.sun.xml.writer.global=libreoffice-writer.desktop
application/vnd.oasis.opendocument.database=libreoffice-base.desktop
application/vnd.oasis.opendocument.formula=libreoffice-math.desktop
application/vnd.oasis.opendocument.graphics=libreoffice-draw.desktop
application/vnd.oasis.opendocument.graphics-template=libreoffice-draw.desktop
application/vnd.oasis.opendocument.presentation=libreoffice-impress.desktop
application/vnd.oasis.opendocument.presentation-template=libreoffice-impress.desktop
application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop
application/vnd.oasis.opendocument.spreadsheet-template=libreoffice-calc.desktop
application/vnd.oasis.opendocument.text=libreoffice-writer.desktop
application/vnd.oasis.opendocument.text-template=libreoffice-writer.desktop
application/vnd.oasis.opendocument.text-web=libreoffice-writer.desktop
application/vnd.oasis.opendocument.text-master=libreoffice-writer.desktop
application/vnd.sun.xml.impress=libreoffice-impress.desktop
application/vnd.sun.xml.impress.template=libreoffice-impress.desktop
application/vnd.stardivision.calc=libreoffice-calc.desktop
application/vnd.stardivision.draw=libreoffice-draw.desktop
application/vnd.stardivision.impress=libreoffice-impress.desktop
application/vnd.stardivision.math=libreoffice-math.desktop
application/vnd.stardivision.writer=libreoffice-writer.desktop
application/mspowerpoint=libreoffice-impress.desktop
application/vnd.ms-powerpoint=libreoffice-impress.desktop
application/vnd.wordperfect=libreoffice-writer.desktop
application/wordperfect=libreoffice-writer.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.template=libreoffice-writer.desktop
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop
application/vnd.openxmlformats-officedocument.spreadsheetml.template=libreoffice-calc.desktop
application/vnd.openxmlformats-officedocument.presentationml.slide=libreoffice-impress.desktop
application/vnd.openxmlformats-officedocument.presentationml.slideshow=libreoffice-impress.desktop
application/vnd.openxmlformats-officedocument.presentationml.presentation=libreoffice-impress.desktop
application/vnd.openxmlformats-officedocument.presentationml.template=libreoffice-impress.desktop
application/x-123=libreoffice-calc.desktop
application/x-abiword=abiword.desktop
application/x-applix-spreadsheet=libreoffice-calc.desktop
application/x-ar=file-roller.desktop;engrampa.desktop
application/x-arj=file-roller.desktop;engrampa.desktop
application/x-bzip-compressed-tar=file-roller.desktop;engrampa.desktop
application/x-bzip=file-roller.desktop;engrampa.desktop
application/x-cbr=xreader.desktop;evince.desktop;atril.desktop
application/x-cbz=xreader.desktop;evince.desktop;atril.desktop
application/x-compressed-tar=file-roller.desktop;engrampa.desktop
application/x-compress=file-roller.desktop;engrampa.desktop
application/x-deb=gdebi.desktop
application/x-debian-package=gdebi.desktop
application/x-dos_ms_excel=libreoffice-calc.desktop
application/x-ear=file-roller.desktop;engrampa.desktop
application/x-excel=libreoffice-calc.desktop
application/x-extension-m4a=xplayer.desktop;totem.desktop
application/x-extension-mp4=xplayer.desktop;totem.desktop
application/x-flac=xplayer.desktop;totem.desktop
application/x-glade=glade-3.desktop
application/x-gnumeric=gnumeric.desktop
application/x-gtar=file-roller.desktop;engrampa.desktop
application/x-gzip=file-roller.desktop;engrampa.desktop
application/x-gzpostscript=xreader.desktop;evince.desktop;atril.desktop
application/xhtml+xml=firefox.desktop
application/x-jar=file-roller.desktop;engrampa.desktop
application/x-java-archive=file-roller.desktop;engrampa.desktop
application/x-java-jnlp-file=icedtea-netx-javaws.desktop
application/x-lha=file-roller.desktop;engrampa.desktop
application/x-lhz=file-roller.desktop;engrampa.desktop
application/xls=libreoffice-calc.desktop
application/x-lzop=file-roller.desktop;engrampa.desktop
application/x-matroska=xplayer.desktop;totem.desktop
application/x-mps=libreoffice-calc.desktop
application/x-ms-excel=libreoffice-calc.desktop
application/x-msexcel=libreoffice-calc.desktop
application/x-ogg=xplayer.desktop;totem.desktop
application/x-oleo=libreoffice-calc.desktop
application/x-perl=xed.desktop;gedit.desktop;pluma.desktop
application/x-planperfect=libreoffice-calc.desktop
application/x-quattropro=libreoffice-calc.desktop
application/x-rar-compressed=file-roller.desktop;engrampa.desktop
application/x-rar=file-roller.desktop;engrampa.desktop
application/x-rpm=file-roller.desktop;engrampa.desktop
application/x-sc=libreoffice-calc.desktop
application/x-shockwave-flash=xplayer.desktop;totem.desktop
application/x-sylk=libreoffice-calc.desktop
application/x-tar=file-roller.desktop;engrampa.desktop
application/x-war=file-roller.desktop;engrampa.desktop
application/x-xbase=libreoffice-calc.desktop
application/x-xls=libreoffice-calc.desktop
application/x-zip-compressed=file-roller.desktop;engrampa.desktop
application/x-zip=file-roller.desktop;engrampa.desktop
application/x-zoo=file-roller.desktop;engrampa.desktop
application/zip=file-roller.desktop;engrampa.desktop
audio/3gpp=xplayer.desktop;totem.desktop
audio/ac3=xplayer.desktop;totem.desktop
audio/AMR=xplayer.desktop;totem.desktop
audio/AMR-WB=xplayer.desktop;totem.desktop
audio/basic=xplayer.desktop;totem.desktop
audio/flac=xplayer.desktop;totem.desktop
audio/midi=xplayer.desktop;totem.desktop
audio/mp4=xplayer.desktop;totem.desktop
audio/mpeg=xplayer.desktop;totem.desktop
audio/mpegurl=xplayer.desktop;totem.desktop
audio/ogg=xplayer.desktop;totem.desktop
audio/prs.sid=xplayer.desktop;totem.desktop
audio/vnd.rn-realaudio=xplayer.desktop;totem.desktop
audio/x-ape=xplayer.desktop;totem.desktop
audio/x-flac=xplayer.desktop;totem.desktop
audio/x-gsm=xplayer.desktop;totem.desktop
audio/x-it=xplayer.desktop;totem.desktop
audio/x-m4a=xplayer.desktop;totem.desktop
audio/x-matroska=xplayer.desktop;totem.desktop
audio/x-mod=xplayer.desktop;totem.desktop
audio/x-mp3=xplayer.desktop;totem.desktop
audio/x-mpeg=xplayer.desktop;totem.desktop
audio/x-mpegurl=xplayer.desktop;totem.desktop
audio/x-ms-asf=xplayer.desktop;totem.desktop
audio/x-ms-asx=xplayer.desktop;totem.desktop
audio/x-ms-wax=xplayer.desktop;totem.desktop
audio/x-ms-wma=xplayer.desktop;totem.desktop
audio/x-musepack=xplayer.desktop;totem.desktop
audio/x-pn-aiff=xplayer.desktop;totem.desktop
audio/x-pn-au=xplayer.desktop;totem.desktop
audio/x-pn-realaudio=xplayer.desktop;totem.desktop
audio/x-pn-realaudio-plugin=xplayer.desktop;totem.desktop
audio/x-pn-wav=xplayer.desktop;totem.desktop
audio/x-pn-windows-acm=xplayer.desktop;totem.desktop
audio/x-realaudio=xplayer.desktop;totem.desktop
audio/x-real-audio=xplayer.desktop;totem.desktop
audio/x-sbc=xplayer.desktop;totem.desktop
audio/x-scpls=xplayer.desktop;totem.desktop
audio/x-speex=xplayer.desktop;totem.desktop
audio/x-tta=xplayer.desktop;totem.desktop
audio/x-wav=xplayer.desktop;totem.desktop
audio/x-wavpack=xplayer.desktop;totem.desktop
audio/x-vorbis=xplayer.desktop;totem.desktop
audio/x-vorbis+ogg=xplayer.desktop;totem.desktop
audio/x-xm=xplayer.desktop;totem.desktop
image/bmp=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/gif=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/jpeg=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/jpg=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/pjpeg=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/png=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/svg+xml=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/tiff=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/vnd.rn-realpix=xplayer.desktop;totem.desktop
image/x-bmp=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-gray=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-icb=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-ico=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-png=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-portable-anymap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-portable-bitmap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-portable-graymap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-portable-pixmap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-psd=gimp.desktop
image/x-xbitmap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
image/x-xpixmap=xviewer.desktop;eog.desktop;eom.desktop;ristretto.desktop
inode/directory=nemo.desktop;caja.desktop;nautilus.desktop;Thunar.desktop;kde4-dolphin.desktop
misc/ultravox=xplayer.desktop;totem.desktop
multipart/x-zip=file-roller.desktop;engrampa.desktop
text/abiword=abiword.desktop
text/calendar=evolution.desktop
text/comma-separated-values=libreoffice-calc.desktop
text/csv=libreoffice-calc.desktop
text/plain=xed.desktop;gedit.desktop;pluma.desktop
text/richtext=abiword.desktop
text/rtf=libreoffice-writer.desktop
text/spreadsheet=libreoffice-calc.desktop
text/tab-separated-values=libreoffice-calc.desktop
text/x-comma-separated-values=libreoffice-calc.desktop
text/x-chdr=xed.desktop;gedit.desktop;pluma.desktop
text/x-csrc=xed.desktop;gedit.desktop;pluma.desktop
text/x-dtd=xed.desktop;gedit.desktop;pluma.desktop
text/x-java=xed.desktop;gedit.desktop;pluma.desktop
text/mathml=xed.desktop;gedit.desktop;pluma.desktop
text/x-python=xed.desktop;gedit.desktop;pluma.desktop
text/x-sql=xed.desktop;gedit.desktop;pluma.desktop
video/3gpp=xplayer.desktop;totem.desktop
video/dv=xplayer.desktop;totem.desktop
video/fli=xplayer.desktop;totem.desktop
video/flv=xplayer.desktop;totem.desktop
video/mp2t=xplayer.desktop;totem.desktop
video/mp4=xplayer.desktop;totem.desktop
video/mp4v-es=xplayer.desktop;totem.desktop
video/mpeg=xplayer.desktop;totem.desktop
video/msvideo=xplayer.desktop;totem.desktop
video/ogg=xplayer.desktop;totem.desktop
video/quicktime=xplayer.desktop;totem.desktop
video/vivo=xplayer.desktop;totem.desktop
video/vnd.divx=xplayer.desktop;totem.desktop
video/vnd.rn-realvideo=xplayer.desktop;totem.desktop
video/vnd.vivo=xplayer.desktop;totem.desktop
video/webm=xplayer.desktop;totem.desktop
video/x-anim=xplayer.desktop;totem.desktop
video/x-avi=xplayer.desktop;totem.desktop
video/x-flc=xplayer.desktop;totem.desktop
video/x-fli=xplayer.desktop;totem.desktop
video/x-flic=xplayer.desktop;totem.desktop
video/x-flv=xplayer.desktop;totem.desktop
video/x-m4v=xplayer.desktop;totem.desktop
video/x-matroska=xplayer.desktop;totem.desktop
video/x-mpeg=xplayer.desktop;totem.desktop
video/x-ms-asf=xplayer.desktop;totem.desktop
video/x-ms-asx=xplayer.desktop;totem.desktop
video/x-msvideo=xplayer.desktop;totem.desktop
video/x-ms-wm=xplayer.desktop;totem.desktop
video/x-ms-wmv=xplayer.desktop;totem.desktop
video/x-ms-wmx=xplayer.desktop;totem.desktop
video/x-ms-wvx=xplayer.desktop;totem.desktop
video/x-nsv=xplayer.desktop;totem.desktop
video/x-ogm+ogg=xplayer.desktop;totem.desktop
video/x-theora+ogg=xplayer.desktop;totem.desktop
video/x-totem-stream=xplayer.desktop;totem.desktop
x-content/video-dvd=xplayer.desktop;totem.desktop
x-content/video-vcd=xplayer.desktop;totem.desktop
x-content/video-svcd=xplayer.desktop;totem.desktop
x-content/audio-cdda=rhythmbox-device.desktop
x-content/audio-dvd=banshee-audiocd.desktop
x-content/audio-player=rhythmbox-device.desktop
x-content/image-dcf=shotwell.desktop
x-content/image-picturecd=shotwell.desktop
zz-application/zz-winassoc-xls=libreoffice-calc.desktop
x-scheme-handler/apt=apturl_mime.desktop
x-scheme-handler/mailto=thunderbird.desktop
x-scheme-handler/spotify=spotify.desktop
text/html=firefox.desktop;vivaldi-stable.desktop
text/xml=xed.desktop;gedit.desktop;pluma.desktop;firefox.desktop;vivaldi-stable.desktop
arghlub@lenovoLM18xfce ~ $ cat /usr/share/applications/defaults.list
ce fichier ou sa copie «~/.local/share/applications/defaults.list» définit ligne par ligne l'application «nomLogiciel.desktop»
(les .desktop sont des lanceurs d'applications) qui sera lancé en fonction du type de contenu et du format des fichiers.
Donc tu repères un format (s'il n'existe pas il faut l'ajouter) et tu renseignes le logiciel qui sera lancé.
La liste des lanceurs (.desktop) de logiciels, tu les retrouves dans les dossiers «/usr/share/applications» et «/home/Ton_Nom/.local/share/applications/», pour en avoir la liste :
──────────────────────────────
PS : pendant la rédaction de tes messages, ne pas confondre les balises "Quote" réservées aux citations avec les balises "Code".
Il faut utiliser ces balises pour tout ce qui concerne le terminal
(commandes, retours de commandes …) ou le contenu de fichier, cela améliore grandement la lisibilité.
Voir
tuto Barre d'outils des messages
J'ai donc modifié ton dernier message pour mettre des balises “Code”.