Bug 307152

Summary: konqueror attempts to open mailto: links with uninstalled application
Product: [Applications] konqueror Reporter: Anders Lund <anderslund>
Component: generalAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: adawit, dirk.heinrichs
Priority: NOR    
Version First Reported In: 4.9.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Anders Lund 2012-09-21 12:11:09 UTC
During part of the kmail disaster, KDE 4.4 -> 4.9, I have used thunderbird for mail. With KDE 4.9., I decided to switch back to kmail, so I told systemsettings that I use kmail, and uninstalled thunderbird.

But clicking a mailto: link, konqueror sometimes try to launch thunderbird, and fails.

Reproducible: Always
Comment 1 Anders Lund 2012-09-21 12:40:13 UTC
I did a grep -ri thunderbird ~/.kde4/share/config and similar with ~/.kde4/share/apps, without finding anything that looks relevant, except maybe these:

Binær fil /home/anders/.kde4/share/apps/nepomuk/repository/main/data/virtuosobackend/soprano-virtuoso.trx stemmer
Binær fil /home/anders/.kde4/share/apps/nepomuk/repository/main/data/virtuosobackend/soprano-virtuoso.db stemmer
Comment 2 Dirk Heinrichs 2012-10-01 06:58:50 UTC
Same here. Konqueror wants to open thunderbird although I have configured kmail as the standard email component.
Comment 3 Dawit Alemayehu 2012-12-31 07:00:43 UTC
This is not a Konqueror issue. Rather you either have a .desktop file lying around somewhere that claims there is a specific mail application when it actually is not there or your system configuration db is out of whack for some other reason.

So my suggestion is for you to check whether there is a lingering thunderbird.desktop file on your system still. If not, check to see if running 'kbuildsycoca4 --noincremental' manually from the command line fixes the issue.
Comment 4 Anders Lund 2012-12-31 09:49:28 UTC
This problem appeared as a consequence of the following actions:
1) using kde systemsettings to set thunderbird as the mail application
2) using kde systemsettings to unset that again

So somehow, kde was not able to do that.

The problem was not a thunderbird.desktop file, but a file specifying what to do with mailto: protocol links, and it was somewhere in ~/.local, but I can't for god remember where. It took MANY attempts to find it, and unfortunately I forgot this report when I did. Sorry.

So, maybe bot a konqueror issue, but definately a KDE one, although it may be cleaning up after someone else. But when KDE claims that I can set kmail as the default mail application, it should be able to provide ;)
Comment 5 Dirk Heinrichs 2012-12-31 11:05:25 UTC
A quick "grep -i mailto **/*(.)" (zsh) in ~/.local revealed share/applications/mimeapps.list. So I deleted this and ran the kbuildsycoca4 command from above, which fixed the problem.

However, I still agree with Anders that setting kmail as default mail app in KDE should result in konqueror (and all other KDE apps) to use it for mailto: links.
Comment 6 Dawit Alemayehu 2013-01-05 07:36:18 UTC
Cannot reproduce this. If I install thunderbird and set it as the default client and then remove it, I get the following error when I click on a test "mailto:" link from the browser:

konqueror(9137) KonqMainWindow::openUrl: Creating new konqrun for KUrl("mailto://?to=joe@xyz.com") req.typedUrl= ""
konqueror(9137)/kfile (kdelibs) KRecentDocument::add: KRecentDocument::add for  "mailto://?to=joe@xyz.com"
Could not find 'thunderbird' executable.
WARNING: Please setup an KMessageHandler with KMessage::setMessageHandler to display message propertly.
(Could not launch Mail Client)ERROR: Could not launch the mail client:

KDEInit could not launch 'thunderbird':
Could not find 'thunderbird' executable.

If I then switch the default email application back to kmail, which is not installed on my system, I see the following error message in my .xsession-errors file:

konqueror(9137) KonqMainWindow::openUrl: Creating new konqrun for KUrl("mailto://?to=joe@xyz.com") req.typedUrl= ""
konqueror(9137)/kfile (kdelibs) KRecentDocument::add: KRecentDocument::add for  "mailto://?to=joe@xyz.com"
Could not find 'kmail' executable.
WARNING: Please setup an KMessageHandler with KMessage::setMessageHandler to display message propertly.
(Could not launch Mail Client)ERROR: Could not launch the mail client:

KDEInit could not launch 'kmail':
Could not find 'kmail' executable.
Comment 7 Andrew Crouthamel 2018-11-09 01:06:08 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Anders Lund 2018-11-09 07:24:26 UTC
I think this has become obsolete.