Skip to content

Commit

Permalink
Change to correct shutdown command
Browse files Browse the repository at this point in the history
"Shutdown" calls lxqt-leave --shutdown and gracefully exits the desktop
enviroment and powers down the machine.  "shutdown" is calling
/sbin/shutdown, and isn't in the $PATH of unprivileged users

See: https://bugzilla.opensuse.org/show_bug.cgi?id=1235763
  • Loading branch information
sfalken committed Jan 16, 2025
1 parent 2568d56 commit 11759f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/power_action_utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ sub poweroff_x11 {
assert_and_click 'authentication-required_cancel_btn';
}
# opens logout dialog
x11_start_program('shutdown', target_match => [qw(authentication-required authorization_failed lxqt_shutdowndialog)], match_timeout => 60);
x11_start_program('Shutdown', target_match => [qw(authentication-required authorization_failed lxqt_shutdowndialog)], match_timeout => 60);
# we have typing issue because of poor performance, to record this if happens.
# Double check for bsc#1137230
if (match_has_tag 'authorization_failed' || 'authentication-required') {
Expand Down

0 comments on commit 11759f8

Please sign in to comment.