Thunar default registration for mime type `inode/directory` is overwritten by other tools.
Brief summary
Thunar's registration for the inode/directory
mime type gets overwritten if other tools register themselves as inode/directory
.
They do this although Thunar is set as default for this mime type in the xfce4 settings manager (under xfce4-seetings-manager -> Default Applications -> Utilities
).
This behavior results in bugs where unrelated tools like git-cola
, Audacity or Visual Studio suddenly open directories (e.g. on Debian, on Ubuntu).
Steps to reproduce
- Install Visual Studio on Debian 11 or Ubuntu 20.04.
- Run in terminal
xdg-open <some directory>
- Directory is opened in vscode.
Expected Behavior
Thunar should open the directory.
Actual Behavior
Visual Studio opens it (or any other tool which registered last as inode/directory
.
Additional Context
While this scenario does not happen very often on Debian or Ubuntu, it is a problem for Qubes. Because Qubes uses the mime type to open the file manager of each VM.
In fact I discovered the issue there and would encourage you to take a look at the issue. It has a little more detail.