replaced weird hack with sourcing env vars

This commit is contained in:
2020-04-28 01:44:22 +02:00
parent eb1762e28d
commit 16dd765faa
2 changed files with 10 additions and 20 deletions

View File

@@ -7,13 +7,11 @@
## CONFIGURATION ##############################################################
# hack: remove space from IFS so that the config can have spaces in the keys
# TODO: find a better way to do this (I'm desperate)
IFS=$'\n\t'
# Source configuration
source "$(dirname "$0")/config"
# Command to start the locker (should not fork)
# Beware the tabs instead of spaces!
locker="env $(grep -v '^#\|^$' ~/.config/xsecurelock/config) xsecurelock"
locker=xsecurelock
# Delay in seconds. Note that by default systemd-logind allows a maximum sleep
# delay of 5 seconds.