Back to TILs

xdg-mime

Date: 2022-10-15Last modified: 2023-02-17

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