| Summary: | Using ApplicationLauncherJob in daemon processes causes the daemon to exit immediately | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Jin Liu <ad.liu.jin> |
| Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | kdelibs-bugs-null, nicolas.fella |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
You need to add QCoreApplication::setQuitLockEnabled(false) *** This bug has been marked as a duplicate of bug 471941 *** |
STEPS TO REPRODUCE ``` #include <KIO/ApplicationLauncherJob> #include <KService> #include <QApplication> #include <QTimer> int main(int argc, char **argv) { QApplication app(argc, argv); QTimer::singleShot(0, &app, []() { QString command = QStringLiteral("konsole"); KService::Ptr service(new KService("konsole", command, "utilities-terminal")); auto *job = new KIO::ApplicationLauncherJob(service); job->start(); }); return app.exec(); } ``` SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.1.90 KDE Frameworks Version: 6.7.0 Qt Version: 6.8.0 Kernel Version: 6.10.10-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics Memory: 13.5 GiB of RAM Graphics Processor: AMD Radeon Graphics