Advertisement
metalx1000

Linux xdg-open change default applitcation

Aug 19th, 2019
837
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. ####Change default Web Browser
  2. #list application
  3. ls /usr/share/applications
  4. #change default to firefox.desktop
  5. xdg-settings set default-web-browser firefox.desktop
  6.  
  7. ####Change Default Application by File Type
  8. #Get Mine Type
  9. xdg-mime query filetype example.png
  10. #change default application
  11. xdg-mime query default image/png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement