On Di 10 Aug 2021 18:10:41 CEST, Ulrich Sibiller wrote:
Probably it would be best to use dbus for session termination if it
is running.
This could be one puzzle piece, indeed. Basically, we can kill
x2goruncommand and then the session manager would automatically go
into logout.
However, esp. the GTK desktops (MATE, XFCE, etc.) leave many stray
processes around (e.g. gvfsd, colord, etc.). For these friends, some
more intelligence is required. Might have that in the X2Go Server
renicer code already, because Lee at those early times worked on code
that detects the complete process tree of a running desktop session.
Nowadays, one could argue that cgroups are another and better
alternative. But cgroups are not available on non-Linux, so maybe a
kernel-agnostic approach is a more favourable way to go?
DAS-NETZWERKTEAM c\o Technik- und Ökologiezentrum Eckernförde Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde mobile: +49 (1520) 1976 148 landline: +49 (4351) 850 8940
GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de