https://bugs.kde.org/show_bug.cgi?id=420513

Konstantin Kharlamov <hi-an...@yandex.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
         Resolution|---                         |NOT A BUG

--- Comment #3 from Konstantin Kharlamov <hi-an...@yandex.ru> ---
Okay, so, I managed to find out how KRun apparently figures that out.

The "mailto:"; as well as any url like "foo:" is a part of shared-mime-info-spec
specification that is called "x-scheme-handler". For "mailto:"; that would be
"x-scheme-handler/mailto".

This means I could try setting the type with xdg-utils. And this is where the
problem turns up:

    $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default x-scheme-handler/mailto
    Running KDE trader query "x-scheme-handler/mailto" mimetype and
"Application" servicetype
    kmailservice.desktop
    $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default thunderbird.desktop
x-scheme-handler/mailto
    make_default_kde: No kde runtime detected
    make_default_generic thunderbird.desktop x-scheme-handler/mailto
    Updating /home/constantine/.config/mimeapps.list
    $ grep mail /home/constantine/.config/mimeapps.list
    x-scheme-handler/mailto=thunderbird.desktop
    $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default x-scheme-handler/mailto
    Running KDE trader query "x-scheme-handler/mailto" mimetype and
"Application" servicetype
    kmailservice.desktop

So apparently the bug is not in kde-open5 (which simply tries default app), nor
in systemsettings5 (which same as xdg-mime is sure that it successfully changed
the default client), but instead in xdg-utils which does not use the default
mail client.

Hence, closing this as invalid.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to