Bug 474625

Summary: Cannot use kquitapp with Kontact or many other PIM applications
Product: [Applications] kontact Reporter: Christopher Yeleighton <giecrilj>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: ASSIGNED ---    
Severity: normal CC: jjm
Priority: NOR    
Version First Reported In: 5.24.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christopher Yeleighton 2023-09-17 17:46:04 UTC
SUMMARY
Kontact does not support the MainApplication interface and cannot be told to quit

STEPS TO REPRODUCE
1. { kquitapp5 kontact; }

OBSERVED RESULT
"Quitting application kontact failed. Error reported was:\n\n     org.freedesktop.DBus.Error.UnknownObject : No such object path '/MainApplication'"

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Tumbleweed 20230915
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Work-around: { gdbus call -e -d org.kde.kontact -o /kontact/MainWindow_1 -m org.qtproject.Qt.QWidget.close; }
Comment 1 Jonathan Marten 2025-03-16 15:10:02 UTC
Confirmed with current PIM 6.  The same applies to Akregator, KMail, KAddressBook, KOrganizer or any other application that uses PimUniqueApplication (in order to integrate into Kontact) instead of KDBusService.
Comment 2 Bug Janitor Service 2025-03-19 16:25:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kontactinterface/-/merge_requests/27