Skip to content

Commit

Permalink
Fix #2 by making XDG_SESSION_ID optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jluttine committed Jan 30, 2021
1 parent 1d389ed commit 368ba43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rofi-power-menu
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ icons[shutdown]="\uf011"
icons[cancel]="\u00d7"

declare -A actions
actions[lockscreen]="loginctl lock-session $XDG_SESSION_ID"
actions[lockscreen]="loginctl lock-session ${XDG_SESSION_ID-}"
#actions[switchuser]="???"
actions[logout]="loginctl terminate-session $XDG_SESSION_ID"
actions[logout]="loginctl terminate-session ${XDG_SESSION_ID-}"
actions[suspend]="systemctl suspend"
actions[hibernate]="systemctl hibernate"
actions[reboot]="systemctl reboot"
Expand Down

0 comments on commit 368ba43

Please sign in to comment.