Sergio Pastor Pérez <sergio.pastorpe...@gmail.com> writes:

> Noé Lopez <noelo...@free.fr> writes:
>> Sergio Pastor Pérez <sergio.pastorpe...@gmail.com> writes:
>>> What I do to solve this problems, is to create a shepherd service to
>>> manage the desktop environment[1], Plasma in my case, and I augment the
>>> plasma-workspace[2] package to provide the corresponding
>>> 'wayland-sessions/plasma-shepherd.desktop' file, so I can boot shepherd
>>> from SDDM.
>>>
>>> This has proven to be very effective and allows me to do things such as
>>> `herd restart plasma' at user level without being logged out.
>>>
>>
>> FYI, GNOME does exactly this by default, the desktop file starts a
>> services manager that then starts the actual desktop.
>
> How so? I don't think you can do `herd restart gnome-session' or
> something similar, can you?

If you were using systemd then I think you could do systemctl restart
gnome-session.

Currently, for people without systemd there is a builtin service
manager, I don’t think there’s a way to signal it to restart everything
though.

In the future, you will be able to do herd restart gnome-session if I
finish the gnome-session-shepherd[1].

How it works is that the desktop file starts gnome-session-binary, which
in turn starts either the systemd services or (before GNOME 49) the
builtin service manager.

Have a nice day,
Noé

[1] https://gitlab.gnome.org/noe/gnome-session-shepherd

Attachment: signature.asc
Description: PGP signature

Reply via email to