How to modify shutdownconfig script on ConsoleKit2?

interpretive language scripts


Moderator: Forum moderators

Post Reply
mistfire
Posts: 729
Joined: Thu Jul 16, 2020 2:16 am
Location: CALABARZON, PH
Has thanked: 3 times
Been thanked: 178 times

How to modify shutdownconfig script on ConsoleKit2?

Post 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.

Last edited by mistfire on Sun Nov 15, 2020 11:19 pm, edited 2 times in total.
User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: Running shutdownconfig on ConsoleKit

Post 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?

mistfire
Posts: 729
Joined: Thu Jul 16, 2020 2:16 am
Location: CALABARZON, PH
Has thanked: 3 times
Been thanked: 178 times

Re: Running shutdownconfig on ConsoleKit

Post by mistfire »

@Jafadmin

Take a look a these xfce source code
https://github.com/xfce-mirror/xfce4-se ... t-dialog.c

User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: Running shutdownconfig on ConsoleKit

Post 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.

mistfire
Posts: 729
Joined: Thu Jul 16, 2020 2:16 am
Location: CALABARZON, PH
Has thanked: 3 times
Been thanked: 178 times

Re: Running shutdownconfig on ConsoleKit

Post by mistfire »

@Jafadmin
I mean was ConsoleKit2 not the original ConsoleKit. Thread is now corrected

Post Reply

Return to “Scripts”