https://bugs.kde.org/show_bug.cgi?id=493893

            Bug ID: 493893
           Summary: Using ApplicationLauncherJob in daemon processes
                    causes the daemon to exit immediately
    Classification: Frameworks and Libraries
           Product: frameworks-kio
           Version: git master
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: ad.liu....@gmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to