Setting the default web browser

Rex Dieter rdieter at math.unl.edu
Thu Jul 18 16:43:41 UTC 2013


Patrick O'Callaghan wrote:

> Evo 3.8.3, Fedora 19, KDE 4.10
> 
> I'm embarrassed to be asking this, but how do I set the default browser
> for embedded URLs to Chrome if I don't have the Gnome Desktop installed?
> 
> I know this is a FAQ, and I've even answered it myself in the past, but
> the rules seem to have changed. There is no longer a
> gnome-control-center app in the Fedora repositories, and the xdg* stuff
> is correctly set to google-chrome, as is
> $HOME/.local/share/applications/mimeapps.list
> 
> There seem to be far too many competing ways to set up default
> applications.

Here's what I usually do:

XDG_CURRENT_DESKTOP=KDE \
xdg-settings set default-web-browser google-chrome.desktop

XDG_CURRENT_DESKTOP=GNOME \
xdg-settings set default-web-browser google-chrome.desktop

since xdg-settings generally only tweaks things for the current-running DE, 
I run it for each (KDE/GNOME), which handles most cases and applications.

-- rex



More information about the users mailing list