Post History
By digging further into the details of xdg-open, I stumbled upon this page in the Arch wiki. There it states that xdg-open will delegate the task of opening a file to the handler of the Desktop En...
Answer
#1: Initial revision
By digging further into the details of `xdg-open`, I stumbled upon this [page](https://wiki.archlinux.org/title/Xdg-utils#xdg-open) in the Arch wiki. There it states that `xdg-open` will delegate the task of opening a file to the handler of the Desktop Environment (DE). In the case of Gnome, this will be `gio`. ### My Solution The available applications for opening a directory can be listed using ``` gio mime inode/directory ``` This effectively listed vscode as the default app! I eventually managed to overwrite this default to use Nautilus as follows ``` gio mime inode/directory org.gnome.Nautilus.desktop ``` ### General Solution I am not sure how `xdg-mime` and `gio` got disconnected. I verified that `xdg-mime` also correctly delegates to `gio` and there seem to be no problems there (at least after the fix). Therefore, a more general (DE-independent) fix would probably be to use ``` xdg-mime default org.gnome.Nautilus.desktop inode/directory ``` to set the default app, even if `xdg-mime query default` lists the correct result. After all, `xdg-mime` does seem to correctly delegate to the app used by the DE.