[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 David Faurechanged: What|Removed |Added Status|ASSIGNED|RESOLVED Latest Commit||http://commits.kde.org/kio/ ||2e6980e9ba3b91798dad0db9f9d ||78317b2d7e4a2 Version Fixed In||5.22 Resolution|--- |FIXED --- Comment #13 from David Faure --- Git commit 2e6980e9ba3b91798dad0db9f9d78317b2d7e4a2 by David Faure. Committed on 22/04/2016 at 14:57. Pushed by dfaure into branch 'master'. Remove kmailservice5, it can only do harm at this point. With no other mail client installed, it would trigger an infinite loop: kde-open5 => kmailservice5 => xdg-open => kde-open5 ... The mechanism defined by XDG (looking up what is associated with x-scheme-handler/mailto) and used by the KCM (it saves the chosen app into mimeapps.list using that 'mimetype'), and by KRun to pick up the app... means that there is no need for a generic executable like kmailservice5 anymore. It was only useful for kdelibs4's .protocol files, which the x-scheme-handler mechanism replaces. FIXED-IN: 5.22 M +0-1src/ioslaves/CMakeLists.txt D +0-11 src/ioslaves/mailto/CMakeLists.txt D +0-38 src/ioslaves/mailto/kmailservice.cpp D +0-57 src/ioslaves/mailto/kmailservice5.desktop M +9-1src/widgets/krun.cpp http://commits.kde.org/kio/2e6980e9ba3b91798dad0db9f9d78317b2d7e4a2 -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 --- Comment #12 from David Faure--- I don't follow. xdg-utils doesn't know about kmailservice5, does it? It only knows about kde-open5, so nothing needs to be changed at the xdg-utils level, unless I'm missing something. By simply removing kmailservice5, that's one less app associated with x-scheme-handler/mailto, so either you have any other mailer installed, or you have none and KIO will pop up a message box (I'm fixing KIO -- and Qt -- for this to happen). -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 --- Comment #11 from Rex Dieter--- If that's the consensus, then I can help on the xdg-utils side of things (to remove it's use of kmailservice5 too) -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 --- Comment #10 from David Faure--- OK it gets worse. kmailservice5 isn't listed in a .protocol file, but instead it's defined as an application associated with x-scheme-handler/mailto. Doh. Recursive logic. There is in fact no more mailto.protocol file. I now think the best solution is just to kill kmailservice5 completely. The mechanism defined by XDG (looking up what is associated with x-scheme-handler/mailto) and used by the KCM (it saves the chosen app into mimeapps.list using that 'mimetype'), and used by KRun to pick up the app... means that there is no need for a generic executable like kmailservice5 anymore. -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 Rex Dieterchanged: What|Removed |Added CC||rdie...@math.unl.edu -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 David Faurechanged: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #9 from David Faure --- Confirmed. The steps for me to reproduce this (with a self-compiled KF5 in a separate prefix) are: kcmshell5 componentchooser # and set the default mailer to "doesnotexist" export PATH=/usr/bin:$KDEDIR/bin # to avoid any kde4 binaries in the PATH (*) rm $KDEDIR/bin/kmail # to avoid a fallback on kmail kde-open5 mailto:f...@example.com # fork bomb happens rm $KDEDIR/bin/kmailservice5 # to stop the fork bomb What is happening is: kde-open5 -> KRun => kmailservice5 -> QDesktopServices => xdg-open => kde-open5 -> . ("->" is a method call, while "=>" means "starts another process") Basically everything in there is delegating the decision of what to open to something else ;-) When I ported kmailservice5 to QDesktopServices, I was assuming that KRun would never end up calling kmailservice5 but the actual mail client. KRun, for mailto URLs (and other 'helper protocols'), selects the app associated with x-scheme-handler/mailto if there is any, and otherwise falls back to the one listed in mailto.protocol, which is kmailservice5. OK then the solution is for kmailservice5 to not use QDesktopServices, but only do "pick the app associated with x-scheme-handler/mailto", to avoid any fallback to kmailservice like KRun would do. Patch coming up. Of course the expected result will be an error message box, what else can we do if there is no mail client installed at all. (*) this is because I don't have kde4 stuff in /usr/bin but in a separate prefix; the same bug happens without /usr/bin in the PATH, but then QDesktopServices calls kfmclient exec instead of xdg-open. -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 Edzachanged: What|Removed |Added CC||s...@o-o.lv --- Comment #8 from Edza --- Bug still actual. -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 --- Comment #7 from Kien Truong--- I can see this bug even if KMail is not set as the email client. I use Thunderbird and still encounter this error. -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 Kien Truongchanged: What|Removed |Added CC||duckientru...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 chx1...@gmail.com changed: What|Removed |Added CC||chx1...@gmail.com --- Comment #6 from chx1...@gmail.com --- Yes this affects me too. Thanks for the workaround. -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 Thomas Masperchanged: What|Removed |Added CC||thomas.mas...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 AnAkkkchanged: What|Removed |Added CC||anakin...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[frameworks-kio] [Bug 354151] kmailservice5 restart repeatly when no mail client is installed
https://bugs.kde.org/show_bug.cgi?id=354151 --- Comment #5 from AnAkkk--- I have the same issue, and IIRC it was also present on KDE4. -- You are receiving this mail because: You are watching all bug changes.