eventually using the dbus, a forced logout could be tried after a short delay
Do you have any documentation about how you could log out via Dbus? And is Dbus present on all linux distros?
I once did a small search and found something to sign out using the dbus.
I don't think that every distro contains it. I would not completly depend on it/ use it as first step during sign out before killing.
Okay this sound good. If I have some more time I'll maybe implement it or if somebody else wants to do it just mention it here so that we don't do the same work twice...
dbus-send --dest=org.gnome.SessionManager --type=method_call /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:2 logs the user out without confirmation (tested at Gnome and Cinnamon, but most likely does not work at other desktop environments)
Documentation for this is at https://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#id345480
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?