Summary: | kde-base/kdelibs-?: GUI to set default browser using x-scheme-handler/http; and https; is what? (was: USE="X" www-client/links pre-empts other browsers in net-irc/hexchat) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kelly Price <bugs> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.kde.org/show_bug.cgi?id=332817 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Kelly Price
2014-03-09 23:00:06 UTC
According to the link, "It's because www-client/links has .desktop files with MimeType= lines for x-scheme-handler/http; and x-scheme-handler/https; and when you run the command `update-desktop-database`, the file mimeinfo.cache will get updated and the last .desktop installed providing the MimeType='s for those associations will get used, unless you override them yourself in ~/.local/share/applications/mimeapps.list" That's a problem. While I installed links, it never was intended to be the default handler. Meanwhile, my .local/share/applications/mimeapps.list is: [Added Associations] image/png=xv-2.desktop; text/html=google-chrome.desktop [Default Applications] text/html=google-chrome.desktop In other words I doubt KDE updates this file -- it's default says Google Chrome. Resolution fixed; A lack of documentation is a bug. (In reply to Kelly Price from comment #2) > According to the link, > > "It's because www-client/links has .desktop files with MimeType= lines for > x-scheme-handler/http; and x-scheme-handler/https; and when you run the > command `update-desktop-database`, the file mimeinfo.cache will get updated > and the last .desktop installed providing the MimeType='s for those > associations will get used, unless you override them yourself in > ~/.local/share/applications/mimeapps.list" > > That's a problem. While I installed links, it never was intended to be the > default handler. Meanwhile, my .local/share/applications/mimeapps.list is: > > [Added Associations] > image/png=xv-2.desktop; > text/html=google-chrome.desktop > > [Default Applications] > text/html=google-chrome.desktop > > In other words I doubt KDE updates this file -- it's default says Google > Chrome. > > Resolution fixed; A lack of documentation is a bug. Your mimeapps.list is missing x-scheme-handler/http; and https; settings. Those have been the de facto way of setting default browsers for some years now, ever since glib changed to it. Reassigning to KDE then, something in KDE should be setting them, and I bet something does, but I'm not a KDE user, so I can't tell offhand. AFAIK there is no KDE GUI for this, since it uses the xdg-* stuff mentioned in comment #0. Which KDE version are you using by the way? 4.11.5 It may only be setting text/html and not the scheme handlers (which is what xdg-* is looking for). Can you please report upstream (and post here the bug link) that x-scheme-handler etc. is not being set and see what they say? (In reply to Michael Palimaka (kensington) from comment #4) > AFAIK there is no KDE GUI for this, since it uses the xdg-* stuff mentioned > in comment #0. err, no, rather xdg-utils has a kludge that detects if KDE is running by checking $KDE_SESSION_VERSION, $KDE_FULL_SESSION, and perhaps some others, and then it uses kde's defaults that kludge exists only in xdg-utils anything else, using xdg-utils (with kde not detected mode, as in, in the generic mode that reads mimes) or dev-libs/glib (that's MANY apps, every second or so :P) will respect x-scheme-handler/http;, https;, mailto;, magnet; and maybe there are others haven't checked for updates in a while so to me best knowledge, KDE doesn't use xdg-utils and even if it did, it doesn't make a difference here (In reply to Michael Palimaka (kensington) from comment #7) > Can you please report upstream (and post here the bug link) that > x-scheme-handler etc. is not being set and see what they say? ^ exactly, upstream should be notified they lack a GUI for setting default browser, mail client, and torrent client (the magnet; links) for anything using glib, or xdg-utils (in a generic mode, not in kde mode) Right, we already discussed that on IRC, but I forgot to update the bug. Finally got a chance to report it upstream to KDE. (In reply to Kelly Price from comment #10) > Finally got a chance to report it upstream to KDE. No offense, but it's poorly explained in the report, I doubt anything will happen based on so vague bug report From upstream bug: nnot confirm here with KDE 4.11.10. After setting default browser to something else, then back to chromium-browser, x-scheme-handler/http was properly set. You may want to check/compare outputs of xdg-settings get default-web-browser xdg-settings get default-url-scheme-handler xdg-mime query default x-scheme-handler/http xdg-mime query default text/html |