-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Place xdg-desktop-portal-gtk.service in session.slice #504
base: main
Are you sure you want to change the base?
Conversation
By default, systemd would place it in `app.slice` which doesn't make sense; that's where apps go, not daemons that are part of the desktop session. `session.slice` makes a lot more sense and it's where the other xdg and/or portal services are placed too.
For some more context, here's my current systemd user unit hierarchy:
As you can clearly see, |
We need to be a bit careful about this: it isn't completely obvious that it's 100% correct to do this. One possible unintended side-effect of doing this is that if Is there a functional reason (like perhaps resource management) why |
I haven't even noticed that If it needs to launch an application, it probably should launch it in its own unit anyway, otherwise |
Indeed, putting x-d-p-gtk into session.slice and also launching everything into their own cgroup in app.slice or both things we should do. Someone needs to put the work in and check all the places where we might launch something. |
I think most of that would need to happen in GLib, because x-d-p-gtk mostly just calls The desktop-independent x-d-p probably has the same problem, because it also calls |
How could I verify whether this actually happens? |
Right, that needs fixing then but otherwise it sounds like we could move it to |
Mh, I skimmed the implementations of |
By default, systemd would place it in
app.slice
which doesn't make sense; that's where apps go, not daemons that are part of the desktop session.session.slice
makes a lot more sense and it's where the other xdg and/or portal services are placed too.cc @smcv @Vladimir-csp