<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - cannot set default browser with xdg-settings"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98562#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - cannot set default browser with xdg-settings"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98562">bug 98562</a>
from <span class="vcard"><a class="email" href="mailto:spam.martin.schulze@gmx.de" title="Martin Schulze <spam.martin.schulze@gmx.de>"> <span class="fn">Martin Schulze</span></a>
</span></b>
<pre>I am not sure if this should go here as well (please tell me whether I should
open another bug for that).
I am running KDE5 on Arch Linux and cannot xdg-settings set default-web-browser
either.
Running with XDG_UTILS_DEBUG_LEVEL=3 I obtained:
<span class="quote">> $ xdg-settings set default-web-browser chromium-browser.desktop
> Running KDE trader query "text/html" mimetype and "Application" servicetype
> make_default_kde: No kde runtime detected
> make_default_generic chromium-browser.desktop text/html
> Updating /home/username/.local/share/applications/mimeapps.list
> Running KDE trader query "text/html" mimetype and "Application" servicetype
> make_default_kde: No kde runtime detected
> make_default_generic userapp-Firefox-65I9HY.desktop text/html
> Updating /home/username/.local/share/applications/mimeapps.list</span >
I dug a bit deeper into this and noticed, that xdg-mime still has some parts
which are not aware of KDE 5. I attached a patch which does some superficial
fixes but it is not working although the output changed:
<span class="quote">> $ xdg-settings set default-web-browser chromium.desktop
> Running KDE trader query "text/html" mimetype and "Application" servicetype
> make_default_kde chromium.desktop text/html
> Updating /home/username/.local/share/applications//mimeapps.list
> kbuildsycoca5 running...
> Reusing existing ksycoca
> Recreating ksycoca file ("/home/username/.cache/ksycoca5_de_<redacted>", version 303)
> Still in the time dict (i.e. deleted files) ("apps")
> Menu "applications-kmenuedit.menu" not found.
> Saving
> make_default_generic chromium.desktop text/html
> Updating /home/username/.local/share/applications/mimeapps.list
> Running KDE trader query "text/html" mimetype and "Application" servicetype
> make_default_kde userapp-Firefox-65I9HY.desktop text/html
> Updating /home/username/.local/share/applications//mimeapps.list
> kbuildsycoca5 running...
> Reusing existing ksycoca
> Recreating ksycoca file ("/home/username/.cache/ksycoca5_de_<redacted>", version 303)
> Still in the time dict (i.e. deleted files) ("apps")
> Menu "applications-kmenuedit.menu" not found.
> Saving
> make_default_generic userapp-Firefox-65I9HY.desktop text/html
> Updating /home/username/.local/share/applications/mimeapps.list</span ></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>