Tuesday, July 21, 2015

Set default browser LXDE (Fedora)

For some reason going to Menu>Preferences>Prefered Applications and choosing Google Chrome didn't work. Midori was still handling all my http/https links.
Solution for this is xdg-mime

To check default browser for http and https type in terminal

xdg-mime query default x-scheme-handler/http

xdg-mime query default x-scheme-handler/https

This command will give you output .desktop file which is used to open those links. To set them to Google Chrome, command is

xdg-mime default google-chrome.desktop x-scheme-handler/https

and for http

xdg-mime default google-chrome.desktop x-scheme-handler/https

Instead of google-chrome.desktop you can use any .desktop file to set default application.

No comments:

Post a Comment