Skip to content

ScopedProcessRunner: Set scope name according to X-KDE-AliasFor

ivan tkachenko requested to merge work/ratijas/alias into master

Before:

│ ├─app-okularApplication_comicbook-84534d740c644451b75c18f91431dda8.scope
│ │ └─14477 /home/ratijas/kde/usr/bin/okular

│ ├─app-okularApplication_comicbook@0f38f64765c44d299ebf4b312663a92e.service
│ │ └─18939 /home/ratijas/kde/usr/bin/okular

After:

│ ├─app-org.kde.okular-59741702fd00471ea95acc380845554f.scope
│ │ └─14147 /home/ratijas/kde/usr/bin/okular

│ ├─app-org.kde.okular@16d3a51419114bdca90acae9b21ac569.service
│ │ └─18660 /home/ratijas/kde/usr/bin/okular

Test code:

    KService::Ptr app = KService::serviceByDesktopName(QStringLiteral("okularApplication_comicbook"));
    KIO::ApplicationLauncherJob *job = new KIO::ApplicationLauncherJob(app, &a);
    job->start();
Edited by ivan tkachenko

Merge request reports

Loading