文件默认的打开方式 MIME TYPE

文件默认的打开方式一般是通过/usr/share/applications/defaults.list 来进行判断的,先去判断文件的MIME TYPE,然后去找对应的执行程序。

 

[Default Applications]
#第一列是文件的MIME TYPE 第二列是文件的默认打开方式
application/x-dia-diagram=fedora-dia.desktop
#text/x-vcard=evolution-2.0.desktop
#text/x-vcalendar=evolution-2.0.desktop
#text/calendar=evolution-2.0.desktop
application/x-arj=gnome-file-roller.desktop
application/x-bzip-compressed-tar=gnome-file-roller.desktop
application/x-bzip=gnome-file-roller.desktop
application/x-compress=gnome-file-roller.desktop
application/x-compressed-tar=gnome-file-roller.desktop
application/x-gzip=gnome-file-roller.desktop
application/x-glade=gnome-glade-2.desktop
application/x-lha=gnome-file-roller.desktop
application/x-lhz=gnome-file-roller.desktop
application/x-lzop=gnome-file-roller.desktop
application/x-rar=gnome-file-roller.desktop
application/x-tar=gnome-file-roller.desktop
application/x-tarz=gnome-file-roller.desktop
application/x-tzo=gnome-file-roller.desktop
application/x-zoo=gnome-file-roller.desktop
application/zip=gnome-file-roller.desktop
application/x-cd-image=mount-archive.desktop
image/x-compressed-xcf=gimp.desktop
 

你可能感兴趣的:(mime type 打开方式)