Bug 474625 - Cannot use kquitapp with Kontact or many other PIM applications
Summary: Cannot use kquitapp with Kontact or many other PIM applications
Status: ASSIGNED
Alias: None
Product: kontact
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.24.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-17 17:46 UTC by Christopher Yeleighton
Modified: 2025-03-19 16:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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