nixos/home/scripts/xdg-query-program.sh

4 lines
112 B
Bash
Executable file

FILETYPE=$(xdg-mime query filetype $@)
DEFAULT=$(xdg-mime query default $FILETYPE)
echo "$FILETYPE -> $DEFAULT"