Bug 418425 - Error "Could not find any application or handler for mailto:"
Summary: Error "Could not find any application or handler for mailto:"
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_componentchooser (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: HI major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-03-03 11:57 UTC by Juan Simón
Modified: 2021-05-07 12:29 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
System preferences application screenshot (94.55 KB, image/png)
2020-03-03 11:57 UTC, Juan Simón
Details
screenshot error (14.43 KB, image/png)
2020-03-03 11:58 UTC, Juan Simón
Details
screenshot error (52.67 KB, image/png)
2020-03-03 11:58 UTC, Juan Simón
Details
error message (33.00 KB, image/png)
2021-05-07 09:18 UTC, Ondřej Růžička
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Simón 2020-03-03 11:57:17 UTC
Created attachment 126563 [details]
System preferences application screenshot

When I click on an email address I want my default browser to open with GMail.
For this I have defined as default application "kioclient5 exec https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=%t&su=%s&body=%u" in system preferences application. 

But when I press on an email address in a KDE application, it shows the error: "Could not find any application or handler for mailto:...". I attach 2 screenshots with error.

When I execute in konsole "kioclient5 exec https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=%t&su=%s&body=%u" works well.

Operating System: Arch Linux 
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.5.7-zen1-1-zen
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7700 CPU @ 3.60GHz
Memory: 15,5 GiB
Comment 1 Juan Simón 2020-03-03 11:58:20 UTC
Created attachment 126564 [details]
screenshot error
Comment 2 Juan Simón 2020-03-03 11:58:30 UTC
Created attachment 126565 [details]
screenshot error
Comment 3 Kai Uwe Broulik 2020-03-06 07:41:43 UTC
Seeing the same thing. Running "xdg-open mailto:foo" shows the Thunderbird (my mail client) bouncing cursor but then shows the "unknown protocol 'mailto'" error.
Comment 4 Fabian Vogt 2020-12-17 18:49:58 UTC
This was also reported downstream: https://bugzilla.opensuse.org/show_bug.cgi?id=1178596

My first guess is that this broke after https://invent.kde.org/plasma/plasma-desktop/commit/d1f62c16c878a665c6e548f7a99b6fab21882e6d.

Initially I thought that xdg-utils needed adjustment to handle the switch to a .desktop file path in ~/.config/emaildefaults, but then I noticed that kde-open5 mailto: is broken with this error.
Comment 5 Fabian Vogt 2020-12-17 21:52:49 UTC
I can reproduce the issue by using something like "/usr/bin/echo foo" without adding "%u" in the exec string. Then KIO::DesktopExecParser::resultingArguments() helpfully appends "%f" as fallback, but for URLs that invokes KIOFuse or kioexec, which obviously doesn't work for mailto:.

However, using the data from the initial post works here, so I'm wondering whether that particular case got fixed meanwhile. Does the issue still happen? If so, what's the output of "ktraderclient5 --mimetype x-scheme-handler/mailto"?
Comment 6 Bug Janitor Service 2021-01-01 04:39:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2021-01-16 04:37:56 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 8 Ondřej Růžička 2021-05-07 09:16:35 UTC
I have similar issue.
When opening mailto link from browser or try to share>send via mail from KDE application (tried Dolphin, Okular, Gwenview so far), pop up with error message appears: "Unable to create io-slave. klaucncher said: Unknown protocol 'mailto'."

Operating System: openSUSE Tumbleweed 20210505
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.12.0-2-default
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7300U CPU @ 2.60GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 620

Default mail client: Mailspring

Might be somehow related to https://bugs.kde.org/show_bug.cgi?id=424383 (or not)

"ktraderclient5 --mimetype x-scheme-handler/mailto" says
```
mimetype is : x-scheme-handler/mailto
got 2 offers.
---- Offer 0 ----
Invalid property Actions
StartupNotify : 'TRUE'
StartupWMClass : 'Mailspring'
Invalid property UntranslatedGenericName
X-DBUS-ServiceName : ''
X-KDE-SubstituteUID : 'FALSE'
X-KDE-Username : ''
Type : 'Application'
Name : 'Mailspring'
Comment : 'The best email app for people and teams at work'
GenericName : 'Mail Client'
Icon : 'mailspring'
Exec : 'mailspring %U'
Terminal : 'FALSE'
TerminalOptions : ''
Path : ''
ServiceTypes : 'Application'
AllowAsDefault : 'TRUE'
InitialPreference : '1'
Invalid property Library
DesktopEntryPath : '/home/ruza/.local/share/applications/Mailspring.desktop'
DesktopEntryName : 'mailspring'
Keywords : 'email - internet'
FormFactors : ''
Categories : 'GNOME - GTK - Network - Email'
---- Offer 1 ----
StartupWMClass : 'crx_faolnafnngnfdaknnbpnkhgohbobgegn'
Type : 'Application'
Name : 'Outlook'
Invalid property Comment
Invalid property GenericName
Icon : 'chrome-faolnafnngnfdaknnbpnkhgohbobgegn-Default'
Exec : '/usr/lib64/chromium/chromium --profile-directory=Default --app-id=faolnafnngnfdaknnbpnkhgohbobgegn'
Terminal : 'FALSE'
Invalid property TerminalOptions
Invalid property Path
ServiceTypes : 'Application'
AllowAsDefault : 'TRUE'
InitialPreference : '1'
Invalid property Library
DesktopEntryPath : '/home/ruza/.local/share/applications/chrome-faolnafnngnfdaknnbpnkhgohbobgegn-Default.desktop'
DesktopEntryName : 'chrome-faolnafnngnfdaknnbpnkhgohbobgegn-default'
Keywords : ''
FormFactors : ''
Categories : ''
```
Comment 9 Ondřej Růžička 2021-05-07 09:18:05 UTC
Created attachment 138213 [details]
error message
Comment 10 Ondřej Růžička 2021-05-07 12:29:38 UTC
Just installed Thunderbird to check - it works as stated here  https://bugzilla.opensuse.org/show_bug.cgi?id=1178596 comment 11