https://bugs.kde.org/show_bug.cgi?id=389144

--- Comment #2 from Max Harmathy <[email protected]> ---
(In reply to Kai Uwe Broulik from comment #1)
> So the issue sit hat KSMServer in its destructor calls KDisplayManager
> shutdown which will kill the session instantly. I was just digging forever
> to find where that would be, I thought requestShutdown would already just
> call logind.

This happens in the class SystemdSession in

https://cgit.kde.org/plasma-workspace.git/tree/libkworkspace/kdisplaymanager.cpp

> How about using shutdown scripts? Does it work when you place a script in
> /etc/xdg/plasma-workspace/shutdown

Yes, scripts in /etc/xdg/plasma-workspace/shutdown get always executed. But
they are executed by the KSMServer itself (although the documentation in
plasma-desktop states they would be executed by startkde) and therefore before
the DBus message to logind.

See KSMServer::runShutdownScripts in

https://cgit.kde.org/plasma-workspace.git/tree/ksmserver/server.cpp

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to