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:
> $ 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
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:
> $ 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
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:
> $ xdg-settings set default-web-browser chromium- browser. desktop generic chromium- browser. desktop text/html .local/ share/applicati ons/mimeapps. list generic userapp- Firefox- 65I9HY. desktop text/html .local/ share/applicati ons/mimeapps. list
> Running KDE trader query "text/html" mimetype and "Application" servicetype
> make_default_kde: No kde runtime detected
> make_default_
> Updating /home/username/
> Running KDE trader query "text/html" mimetype and "Application" servicetype
> make_default_kde: No kde runtime detected
> make_default_
> Updating /home/username/
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:
> $ xdg-settings set default-web-browser chromium.desktop .local/ share/applicati ons//mimeapps. list username/ .cache/ ksycoca5_ de_<redacted> ", version 303) kmenuedit. menu" not found. generic chromium.desktop text/html .local/ share/applicati ons/mimeapps. list Firefox- 65I9HY. desktop text/html .local/ share/applicati ons//mimeapps. list username/ .cache/ ksycoca5_ de_<redacted> ", version 303) kmenuedit. menu" not found. generic userapp- Firefox- 65I9HY. desktop text/html .local/ share/applicati ons/mimeapps. list
> Running KDE trader query "text/html" mimetype and "Application" servicetype
> make_default_kde chromium.desktop text/html
> Updating /home/username/
> kbuildsycoca5 running...
> Reusing existing ksycoca
> Recreating ksycoca file ("/home/
> Still in the time dict (i.e. deleted files) ("apps")
> Menu "applications-
> Saving
> make_default_
> Updating /home/username/
> Running KDE trader query "text/html" mimetype and "Application" servicetype
> make_default_kde userapp-
> Updating /home/username/
> kbuildsycoca5 running...
> Reusing existing ksycoca
> Recreating ksycoca file ("/home/
> Still in the time dict (i.e. deleted files) ("apps")
> Menu "applications-
> Saving
> make_default_
> Updating /home/username/