Summary: | ktraderclient5 returns the wrong order for x-scheme-handler/magnet | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kservice | Reporter: | Mathias Tillman <master.homer> |
Component: | general | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dion, Ed.Greshko, kdelibs-bugs, rdieter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kservice/c9edc4769d278f174d821cf6d9364fbca356b676 | Version Fixed In: | 5.21 |
Description
Mathias Tillman
2016-01-18 11:11:36 UTC
I believe this is try in all cases that the xdg-mime default command is having no effect on the order. I am having the same problem with xdg-mime default mozilla-thunderbird.desktop 'x-scheme-handler/mailto' No matter what KMail2.desktop is always returned. It looks like ktraderclient5 completely ignores ~/.local/share/applications/mimeapps.list. That's actually why configuring preferred email client via systemsettings5 is ignored by xdg-open. dion@debpad:~% export XDG_UTILS_DEBUG_LEVEL=2 dion@debpad:~% xdg-mime query default "x-scheme-handler/mailto" Running KDE trader query "x-scheme-handler/mailto" mimetype and "Application" servicetype org.kde.kmail.desktop dion@debpad:~% xdg-mime default mutt_terminal.desktop x-scheme-handler/mailto make_default_kde: No kde runtime detected make_default_generic mutt_terminal.desktop x-scheme-handler/mailto Updating /home/dion/.local/share/applications/mimeapps.list dion@debpad:~% xdg-mime query default "x-scheme-handler/mailto" Running KDE trader query "x-scheme-handler/mailto" mimetype and "Application" servicetype org.kde.kmail.desktop And now let's lie to xdg-mime that we don't have KDE: dion@debpad:~% KDE_SESSION_VERSION= xdg-mime query default "x-scheme-handler/mailto" Checking /home/dion/.local/share/applications/mimeapps.list mutt_terminal.desktop Dmitry: thanks for the precise steps. Perfect bug report. Fix coming up. Git commit c9edc4769d278f174d821cf6d9364fbca356b676 by David Faure. Committed on 06/03/2016 at 18:35. Pushed by dfaure into branch 'master'. Fix handling of x-scheme-handler/* in mimeapps.list parsing. Since this isn't a known mimetype, such lines were being ignored. FIXED-IN: 5.21 M +1 -1 autotests/CMakeLists.txt M +3 -0 autotests/kmimeassociationstest.cpp M +4 -3 src/sycoca/kmimeassociations.cpp M +1 -1 tests/CMakeLists.txt http://commits.kde.org/kservice/c9edc4769d278f174d821cf6d9364fbca356b676 The folks at fedora have pulled and built the new package and I've verified the fix. Thanks. |