当我在 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
$
答案1
哑剧开放
$ 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;
新的配置文件已创建,现在定义文件夹的默认应用程序。
谢谢弗兰克·施里弗为我指明了正确的方向。