Bug 250294

Summary: klauncher shows error during kmail migration
Product: [Applications] kmail2 Reporter: George Kiagiadakis <mail>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description George Kiagiadakis 2010-09-05 18:28:13 UTC
Version:           unspecified (using Devel) 
OS:                Linux

This is with:
kde: 4.5.1
kdepim: 4.4.93
(bugzilla doesn't yet have those versions on the list)

When kmail2 is launched for the first time from krunner, the migration tool appears and blocks kmail in the background. This causes KLauncher to show an error dialog "Could not launch kmail. It probably crashed" or something like that (I don't remember the exact wording). This probably happens because kmail is blocked before it sends the appropriate dbus signal back to klauncher to inform it that it has started successfully.

Reproducible: Didn't try



Expected Results:  
No error dialog should appear.
Comment 1 George Kiagiadakis 2010-09-05 20:51:09 UTC
Actually, I made a mistake. This error always appears. The fix is trivial:

--- a/kmail/KMail.desktop
+++ b/kmail/KMail.desktop
@@ -138,6 +138,6 @@
 Terminal=false
 X-KDE-StartupNotify=true
 X-DBUS-StartupType=Unique
-X-DBUS-ServiceName=org.kde.kmail
+X-DBUS-ServiceName=org.kde.kmail2
 X-KDE-ServiceTypes=DBUS/Mailer
 Categories=Qt;KDE;Network;Email;
Comment 2 Laurent Montel 2010-12-14 18:21:19 UTC
kmail is register as org.kde.kmail and org.kde.kmail2
=> I can close this bug report