Advertisement
metalx1000

Setting Xorg xdg-open default application for file type

Mar 15th, 2020
912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #setting Xorg xdg-open default application for file
  2. #get file type of file
  3. xdg-mime query filetype image.gif
  4.  
  5. #get which desktop file that file type is set to use
  6. xdg-mime query default image/gif
  7.  
  8. #list available desktop files
  9. ls /usr/share/applications/*
  10.  
  11. #set new default application by using desktop file
  12. xdg-mime default org.gnome.eog.desktop image/gif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement