Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I reboot/halt on LXQT with a normal user?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Dwosky
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2018
Posts: 135

PostPosted: Tue Jan 08, 2019 7:00 pm    Post subject: How can I reboot/halt on LXQT with a normal user? Reply with quote

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?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Tue Jan 08, 2019 7:27 pm    Post subject: Reply with quote

You use login manager or startx to launch LXQt?
If you use startx see https://wiki.gentoo.org/wiki/LXQt#Launching_LXQt_with_startx
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Dwosky
Tux's lil' helper
Tux's lil' helper


Joined: 07 Nov 2018
Posts: 135

PostPosted: Tue Jan 08, 2019 7:45 pm    Post subject: Reply with quote

I'm using sddm and have the following under .xinitrc:
Code:
-> # cat .xinitrc
exec ck-launch-session startlxqt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum