Page 1 of 1
How to modify shutdownconfig script on ConsoleKit2?
Posted: Fri Nov 13, 2020 2:36 pm
by mistfire
I just wondered if someone can able to run shutdownconfig script via ConsoleKit2. Some mainstream desktop environment calls ConsoleKit2 for shutting down or restarting the system. Based from ConsoleKit source code it calls the scripts from /usr/lib/ConsoleKit/scripts/
ck-system-hibernate -- calls pm-hibernate from pm-utils (suspend on disk)
ck-system-hybridsleep -- calls pm-hybrid from pm-utils (suspend on disk)
ck-system-restart -- calls "shutdown -r" command (reboot)
ck-system-stop -- calls shutdown command
ck-system-suspend -- calls pm-suspend from pm-utils (sleep)
I tried to modify the /etc/rc.d/rc.shutdown script and shutdownconfig. Still I have no luck to run shutdownconfig upon shutdown.
Re: Running shutdownconfig on ConsoleKit
Posted: Sat Nov 14, 2020 12:20 am
by Jafadmin
mistfire wrote: Fri Nov 13, 2020 2:36 pm"Most mainstream desktop environment calls ConsoleKit for shutting down or restarting the system."
link?
Re: Running shutdownconfig on ConsoleKit
Posted: Sun Nov 15, 2020 8:26 am
by mistfire
Re: Running shutdownconfig on ConsoleKit
Posted: Sun Nov 15, 2020 12:49 pm
by Jafadmin
It hasn't been maintained since 2013 https://www.freedesktop.org/wiki/Software/ConsoleKit/
and is far from "Most mainstream desktop environments" calling it.
Re: Running shutdownconfig on ConsoleKit
Posted: Sun Nov 15, 2020 11:17 pm
by mistfire
@Jafadmin
I mean was ConsoleKit2 not the original ConsoleKit. Thread is now corrected