Discussion:
Unable to create io-slave. klauncher said: Unknown protocol 'mailto'.
(too old to reply)
Grimble
2023-02-16 12:17:27 UTC
Permalink
I get this error when clicking on e.g. a "contact us" button in Google
Chrome, expecting an email screen. Google shows it's a persistent
problem, and a solution seems to involve adding a Mimetype statement
such as
MimeType=application/x-xdg-protocol-mailto;x-scheme-handler/mailto
to ~/.local/share/applications/thunderbird.desktop
However, this doesn't work for me. Any suggestions?
Thanks,
--
Grimble
Machine 'Haydn' running Plasma 5.20.4 on 5.15.88-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64
David W. Hodgins
2023-02-16 17:11:38 UTC
Permalink
Post by Grimble
I get this error when clicking on e.g. a "contact us" button in Google
Chrome, expecting an email screen. Google shows it's a persistent
problem, and a solution seems to involve adding a Mimetype statement
such as
MimeType=application/x-xdg-protocol-mailto;x-scheme-handler/mailto
to ~/.local/share/applications/thunderbird.desktop
However, this doesn't work for me. Any suggestions?
Thanks,
See "man xdg-settings" which shows how to set the mailto value as one of the
examples.

Regards, Dave Hodgins
Grimble
2023-02-18 15:39:59 UTC
Permalink
Post by David W. Hodgins
Post by Grimble
I get this error when clicking on e.g. a "contact us" button in Google
Chrome, expecting an email screen. Google shows it's a persistent
problem, and a solution seems to involve adding a Mimetype statement
such as
MimeType=application/x-xdg-protocol-mailto;x-scheme-handler/mailto
to ~/.local/share/applications/thunderbird.desktop
However, this doesn't work for me. Any suggestions?
Thanks,
See "man xdg-settings" which shows how to set the mailto value as one of the
examples.
Regards, Dave Hodgins
Thanks for the pointer Dave, but further help needed.
$xdg-settings --list
Known properties:
default-url-scheme-handler Default handler for URL scheme
default-web-browser Default web browser
So, nothing for mail.

$ xdg-settings set default-url-scheme-handler mailto Thunderbird.desktop
[***@haydn Scripts]$ echo $?
4
Action failed, but why?

Thunderbird.desktop exists in ~/.local/share/applications/
Thunderbird is the default Email Client in System Settings/Applications/
Also ~/.local/share/applications/mimeapps.list contains
[Default Applications]
x-scheme-handler/mailto=Thunderbird.desktop
which I created after searching around.
--
Grimble
Machine 'Haydn' running Plasma 5.20.4 on 5.15.88-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64
David W. Hodgins
2023-02-18 22:45:10 UTC
Permalink
Post by Grimble
Thanks for the pointer Dave, but further help needed.
$xdg-settings --list
default-url-scheme-handler Default handler for URL scheme
default-web-browser Default web browser
So, nothing for mail.
$ xdg-settings set default-url-scheme-handler mailto Thunderbird.desktop
4
Action failed, but why?
Not sure why it's failing.
Post by Grimble
Thunderbird.desktop exists in ~/.local/share/applications/
Thunderbird is the default Email Client in System Settings/Applications/
Also ~/.local/share/applications/mimeapps.list contains
[Default Applications]
x-scheme-handler/mailto=Thunderbird.desktop
which I created after searching around.
Might be easier to just edit ~/.config/mimeapps.list directly.

[***@x3 ~]$ grep -e '^\[' -e mailto ~/.config/mimeapps.list
[Added Associations]
x-scheme-handler/mailto=kde4-kmailservice.desktop;exo-mail-reader.desktop;thunderbird.desktop;
[Default Applications]
x-scheme-handler/mailto=thunderbird.desktop
[***@x3 ~]$ xdg-settings check default-url-scheme-handler mailto thunderbird.desktop
yes

Note the x-scheme-handler line is all one line, not two if the mail reader
wraps it.

Regards, Dave Hodgins

Loading...