Back to TILs

xdg-mime

Query

xdg-mime query default inode/directory
code.desktop

The sample output above indicates that VS Code is currently configured as default application to open folders.

Set

xdg-mime default thunar.desktop inode/directory
# or
xdg-mime default   fman.desktop inode/directory
# or
xdg-mime default   nemo.desktop inode/directory

References