Prevent duplicate xlocker activation during X11 session startup
This commit is contained in:
1 parent
b8dea31b59
commit
dbd8cef2e1
8 files changed
+114
-96
No files matched your search
@@ -26,7 +26,7 @@ case "$SXMO_WM" in
|
||||
if ! sxmo_jobs.sh running proximity_lock -q; then
|
||||
sxmo_dmenu.sh close
|
||||
fi
|
||||
xlocker >/dev/null 2>&1 &
|
||||
[ -f "$XDG_RUNTIME_DIR/xlocker.pid" ] || xlocker >/dev/null 2>&1 &
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -81,9 +81,10 @@ if sxmo_wakelock.sh isenabled; then
|
||||
sxmo_wakelock.sh lock sxmo_not_suspendable infinite
|
||||
fi
|
||||
|
||||
# Activate lockscreen upon GUI startup
|
||||
printf '1\n' > /tmp/bananarchy_screen_locked
|
||||
sxmo_state.sh set lock
|
||||
# Ensure lockscreen is active if session is still locked and locker has not yet mapped
|
||||
if [ -f /tmp/bananarchy_screen_locked ] && [ ! -f "$XDG_RUNTIME_DIR/xlocker.pid" ]; then
|
||||
( xlocker >/dev/null 2>&1 & )
|
||||
fi
|
||||
|
||||
# Turn on lisgd only on touch devices
|
||||
if [ -z "$SXMO_NO_VIRTUAL_KEYBOARD" ] && [ ! -e "$XDG_CACHE_HOME"/sxmo/sxmo.nogesture ]; then
|
||||
@@ -103,7 +104,6 @@ fi
|
||||
pidof -s conky >/dev/null 2>&1 || DISPLAY=:0 CONKY_DPY=:0 conky -c /home/user/.config/sxmo/conky.conf -d >/dev/null 2>&1 </dev/null || true
|
||||
if [ -f /tmp/bananarchy_screen_locked ]; then
|
||||
pkill -STOP -x conky 2>/dev/null || true
|
||||
( xlocker wake >/dev/null 2>&1 & )
|
||||
fi
|
||||
|
||||
# It watch network changes and update the status bar icon by example
|
||||
|
||||
Reference in new issue
Block a user