I am not the reporter, but I read the current KIO code (master, 6.33
development) to answer comment 9. I did not test it on Plasma.

Since Frameworks 6.0, KIO launches applications as transient systemd
services when systemd is 250 or newer, and Plasma no longer has to set
an environment variable for it (comment 4):
https://invent.kde.org/frameworks/kio/-/commit/e767359faf97c04725ced625f0b98cc70186b450

systemd then starts the application inside the service, so the race
reported here cannot happen in this mode.

KIO uses a scope only with systemd older than 250. Since Frameworks 6.1,
ScopedProcessRunner holds the child before exec until the reply to
StartTransientUnit arrives:
https://invent.kde.org/frameworks/kio/-/commit/152fa94b5fb2c3226b0f8f7975c1f06bec4ecdaa

This leaves a small window, which comment 3 describes: systemd replies
when it queues the job, and it moves the PID into the scope only when
the job runs. Waiting for the JobRemoved signal of that job before
releasing the child would close it. I did not reproduce this window.

So I think this bug can be closed as fixed by the first commit, unless
the scope mode for systemd older than 250 still matters.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2011806

Title:
  [lunar] Snaps don't launch due to cgroup issue

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-shell/+bug/2011806/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to