Skip to content
Commit b85ed16e authored by Hugo Barrera's avatar Hugo Barrera
Browse files

Place portals in session.slice

Services and applications like these portals should be placed in the
session slice.

From DESKTOP_ENVIRONEMTNS[1]

> The purpose of this grouping is to assign different priorities to the
> applications. This could e.g. mean reserving memory to session
> processes, preferentially killing background tasks in out-of-memory
> situations or assigning different memory/CPU/IO priorities to ensure
> that the session runs smoothly under load.

And from man:systemd.special(7):

> session.slice
>  All essential services and applications required for the session
>  should use this slice. These are services that either cannot be
>  restarted easily or where latency issues may affect the interactivity
>  of the system and applications. This includes the display server,
>  screen readers and other services such as DBus or XDG portals. Such
>  services should be configured to be part of this slice by adding
>  Slice=session.slice to their unit files.  # Please enter the commit
>  message for your changes. Lines starting

Note that XDG portals are explicitly mentioned here. This should
reduce the priority of the portals when it comes to freeing up
resources. Having the portals get killed can further affect the
stability of other desktop applications.

[1]: https://systemd.io/DESKTOP_ENVIRONMENTS/
parent cf84df44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment