SDDM ignoring RebootCommand/HaltCommand?
by lostintime from LinuxQuestions.org on (#6JHK4)
Slackware 15.0 64-bit.
The /etc/sddm.conf file seems to be functioning as expected except the RebootCommand/HaltCommand options are ignored.
Can anybody else confirm?
More info:
Running sddm --example-config shows the default is:
HaltCommand=/usr/bin/loginctl poweroff
RebootCommand=/usr/bin/loginctl reboot
This is the behavior I observe and matches the sddm.conf man page. Configuring those two sddm.conf options with a different command/script has no effect. (Side note: the sddm man page shows --example-config: Print the complete current configuration to stdout. The man page might be more helpful with "Print the complete default configuration to stdout.")
I found a reply that the RebootCommand option is valid only "when the UPower backend is being used, and that backend is only used if both DBus services login1 and ConsoleKit are not found at run-time." I am guessing this applies to the HaltCommand option too. One way or another I seem unable to use these two sddm.conf options.
I am not a programmer but looking at the sddm source code finds the two options supported in PowerManager.cpp after a comment UPOWER BACKEND. Running the following shows UPower is responding:
qdbus --system org.freedesktop.UPower
Perhaps there is some trickery to use these two options in Slackware? Or a patch?
I have looked for work-arounds, such as using scripts in /etc/elogind/system-shutdown/ or modifying /usr/share/sddm/scripts/Xstop. Thus far no success.
Thanks for any help.
The /etc/sddm.conf file seems to be functioning as expected except the RebootCommand/HaltCommand options are ignored.
Can anybody else confirm?
More info:
Running sddm --example-config shows the default is:
HaltCommand=/usr/bin/loginctl poweroff
RebootCommand=/usr/bin/loginctl reboot
This is the behavior I observe and matches the sddm.conf man page. Configuring those two sddm.conf options with a different command/script has no effect. (Side note: the sddm man page shows --example-config: Print the complete current configuration to stdout. The man page might be more helpful with "Print the complete default configuration to stdout.")
I found a reply that the RebootCommand option is valid only "when the UPower backend is being used, and that backend is only used if both DBus services login1 and ConsoleKit are not found at run-time." I am guessing this applies to the HaltCommand option too. One way or another I seem unable to use these two sddm.conf options.
I am not a programmer but looking at the sddm source code finds the two options supported in PowerManager.cpp after a comment UPOWER BACKEND. Running the following shows UPower is responding:
qdbus --system org.freedesktop.UPower
Perhaps there is some trickery to use these two options in Slackware? Or a patch?
I have looked for work-arounds, such as using scripts in /etc/elogind/system-shutdown/ or modifying /usr/share/sddm/scripts/Xstop. Thus far no success.
Thanks for any help.