Debian

選擇“打開包含文件夾”時Firefox中的奇怪文件關聯

  • September 20, 2019

當我在 Firefox 中下載文件並點擊“打開包含文件夾”時,它會在 Baobab 而不是 PCMan FM 中打開該文件夾。

我不知道我是如何結束這種行為的;我希望 Firefox 在 PCMan FM 中打開它。

我在 Debian 10.0 上執行 LXDE。

$ mimetype ~/Downloads
/home/milo/Downloads: inode/directory

$ grep directory /etc/mime.types 
#  file in their home directory.  Definitions included there will take
application/vnd.japannet-directory-service
application/vnd.noblenet-directory
inode/directory-locked
inode/directory
text/directory

$

模仿打開

$ mimeopen Downloads/
Please choose a default application for files of type inode/directory

   1) Disk Usage Analyzer  (org.gnome.baobab)
   2) File Manager PCManFM  (pcmanfm)
   3) Other...

use application #2
Opening "Downloads/" with File Manager PCManFM  (inode/directory)

$ cat .config/mimeapps.list 
[Default Applications]
inode/directory=pcmanfm.desktop;

創建了新的配置文件,它現在定義了文件夾的預設應用程序。

感謝Frank Schrijver為我指明了正確的方向。

引用自:https://unix.stackexchange.com/questions/542596