Chl*_*loé 5 xfce xubuntu firefox nautilus thunar
在询问了 AskUbuntu 和 Unix 的 stackexchange 上的几个已回答的问题后,Firefox 的“打开包含文件夹”选项(下载文件时)仍然会在 Thunar 文件管理器中打开文件夹,即使我的默认文件管理器是 Nautilus。(但是,例如,当提示保存文件时,打开的是 Nautilus,这意味着,我猜,Firefox 以某种方式知道 Nautilus 的存在。)我使用的是 XFCE (Ubuntu 22),所以我无法卸载 Thunar,而不会导致核心问题(已经尝试过)。
Nautilus(名称为“文件”)设置为默认文件管理器。在我的“默认应用程序”应用程序的 GUI 中,inode/directory 和 inode/mount-point 设置为 Files。
我尝试修改每mimeapps.list一个可能的defaults.list文件mimeinfo.cache,每个文件都有以下行:
inode/directory=org.gnome.Nautilus.desktop
Run Code Online (Sandbox Code Playgroud)
(其中有一些[Default Applications]之前也上线过)
除了鹦鹉螺之后mimeinfo.cache有“Catfish”和“Thunar”的那一个。但是用 sudo 删除对 Thunar 的提及并不会改变任何事情。
我也/usr/share/dbus-1/services/org.freedesktop.FileManager1.service根据建议进行了更新,但没有改变任何东西。
我已经关闭/重新打开我的用户会话,也重新启动了我的计算机,没有任何变化。
我错过了什么?
请不要标记为重复,因为以下问题中提供的答案都没有解决我的问题:
想象这与我的情况有关:
查看/usr/share/dbus-1/services/并发现:
org.xfce.FileManager.service
org.xfce.Thunar.FileManager1.service
Run Code Online (Sandbox Code Playgroud)
因为我在 Kubuntu 上使用 Dolphin,所以我也使用了org.kde.dolphin.FileManager1.service. 我已将“dolphin”文件中的行复制SystemdService=plasma-dolphin.service到另外两个文件中,替换其中相应的“thunar”行。
根据您的情况,您应该使用与您的情况相对应的变量,包括“nautilus”。
它们可能看起来像这样:
org.xfce.FileManager.service:
[D-BUS Service]
Name=org.xfce.FileManager
Exec=/usr/bin/Thunar --gapplication-service
SystemdService=nautilus.service
Run Code Online (Sandbox Code Playgroud)
org.xfce.Thunar.FileManager1.service:
[D-BUS Service]
Name=org.freedesktop.FileManager1
Exec=/usr/bin/Thunar --gapplication-service
SystemdService=nautilus.service
Run Code Online (Sandbox Code Playgroud)
我不确定org.gnome.Nautilus.service:但也许是这样的:
[D-BUS Service]
Name=org.freedesktop.FileManager1
Exec=/usr/bin/nautilus --daemon
SystemdService=nautilus.service
Run Code Online (Sandbox Code Playgroud)
来自我的来源的其他解决方案(请参阅链接),我尚未测试但已确认有效:
killall Thunar登录时运行
跑步systemctl --user mask thunar
我认为这些解决方案不能在像 Xfce(Thunar 处理桌面)这样的桌面上使用,除非进一步设置完全取代 Thunar 的功能。
| 归档时间: |
|
| 查看次数: |
1792 次 |
| 最近记录: |