[xdg-settings] [PATCH] Should use basenames in GNOME
Submitted by Michael Terry
Assigned to Fathi Boudra
Description
Created attachment 32875 Use basenames for GNOME
In GNOME, it's more appropriate to use basenames for the various browser gconf keys.
Notice the behavior of the "Preferred Applications" app. It will set basenames, not full binary paths. Thus, xdg-settings is in a bit of conflict with that app (the canonical method of changing preferred apps in GNOME).
Using full paths can also result in a bit of oddity when, say, using Chromium and it calls xdg-settings after having modified its own PATH to point at /usr/lib/chromium-browser first. It ends up setting paths that avoid its wrapper script at /usr/bin.
I'm attaching a patch that fixes this for just GNOME. I'm not sure if other DEs would appreciate the change, so I'm making it narrow. (The patch was originally written for chromium's built-in version, so the diff src path probably isn't right, but the patch should apply.)
Patch 32875, "Use basenames for GNOME":
gnome_browser_basename.patch