Dwosky Tux's lil' helper
Joined: 07 Nov 2018 Posts: 135
|
Posted: Tue Jan 08, 2019 7:00 pm Post subject: How can I reboot/halt on LXQT with a normal user? |
|
|
Hello,
I'm trying to configure my user to be able to launch the control commands (halt, reboot, etc), but I'm not able over LXQT.
LXQT has defined the launcher to call lxqt-leave --reboot, which if I use the CLI to call outputs the following:
Code: | -> % lxqt-leave --reboot
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-peter'
(0x7fffd51bca90) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanReboot"
(0x7fffd51bca90) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.ConsoleKit" "/org/freedesktop/ConsoleKit/Manager" "org.freedesktop.ConsoleKit.Manager" "CanReboot" |
If I restart dbus and launch the command again, it takes longer but ends giving the following:
Code: | -> % lxqt-leave --reboot
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-peter'
(0x7ffd3e5f9bb0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanReboot"
(0x7ffd3e5f9bb0) Warning: ** Dbus error **************************
(0x7ffd3e5f9bb0) Warning: Error name "org.freedesktop.DBus.Error.NoReply"
(0x7ffd3e5f9bb0) Warning: Error msg "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
(0x7ffd3e5f9bb0) Warning: ****************************************
(0x7ffd3e5f9bb0) Debug: systemd: "CanReboot" = "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." |
My user belongs to wheel and I've set for the moment a sudo NOPASSWD to be able to restart and halt from CLI, but I would like to have the Desktop launchers working. Any idea what I'm missing? |
|