Set Default PDF Reader in Linux

solve the problem that gimp open pdf as default

  • check filetype of a certain file

    xdg-mime query filetype xxx.pdf
    
  • check default mimetype of a certain filetype

    xdg-mime query default application/pdf
    
  • set default mimetype for a certain filetype

    xdg-mime default evince.desktop application/pdf
    

Reference:


Last modified on 2023-11-01