aboutsummaryrefslogblamecommitdiff
path: root/misc/bin/xdgdef
blob: 3d8791f8371953d979f8575db215da0d81bc1d1b (plain) (tree)
1
2
3
4
5



                                                       
#!/bin/bash
# Print xdg file type and the default opener for a file

filetype=$(xdg-mime query filetype "$1")
echo $filetype=`xdg-mime query default "$filetype"`