Categories
Fixes

Xubuntu Default File Manager for Qt Applications

I’ve had to use this fix a few times, but I forget exactly what it is and waste too much time searching the web when I need it again, so I’m documenting it here.

Qbittorrent has a setting where you can double-click an item in the transfer list to open the destination folder. This is helpful if you want to instantly navigate to the folder where you downloaded the Linux ISO to.

But it fails on Xubuntu which uses XFCE instead of Gnome as its desktop environment. It can be fixed with one command in the CLI. It also helps other Qt applications play nice with the Thunar file manager.

  • Run to see current setting:
    xdg-mime query default inode/directory
  • Result:
    org.gnome.Nautilus.desktop (not correct)
  • Run to change setting:
    xdg-mime default thunar.desktop inode/directory
  • Run to see new setting:
    xdg-mime query default inode/directory
  • Result:
    thunar.desktop (correct)

Solution from: https://askubuntu.com/questions/253131/how-to-set-thunar-as-a-default-file-manager

Older versions had “Thunar” capitalized, but for a freshly installed Xubuntu 22.04 it was lowercase.