I am on a debian 9 system with unknown desktop environment (ssh access). How can I find out which program is used by default to view a file with a given extension (e.g. pdf)?
Edit: Since extension is not important to the decision, the mime type of the given file can be found by using file
file -i file.ext
Ask xdg-mime
.
$ xdg-mime query default application/pdf
atril.desktop
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments