check SXMO_WM instead of tinydm session when logging out
This could break if someone decides not to use tinydm, or uses tinyd-set-session instead of togglewm. Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
@@ -22,13 +22,9 @@ case "$1" in
|
||||
;;
|
||||
logout)
|
||||
sxmo_hook_logout.sh
|
||||
case "$(realpath /var/lib/tinydm/default-session.desktop)" in
|
||||
*"swmo.desktop")
|
||||
swaymsg exit
|
||||
;;
|
||||
*"sxmo.desktop")
|
||||
pkill dwm
|
||||
;;
|
||||
case "$SXMO_WM" in
|
||||
"sway") swaymsg exit ;;
|
||||
"dwm") pkill dwm ;;
|
||||
esac
|
||||
;;
|
||||
togglewm)
|
||||
|
Reference in New Issue
Block a user