This commit is contained in:
2015-10-13 13:52:26 +03:00
parent e3d642a730
commit 1809fde7c9
2 changed files with 17 additions and 5 deletions

7
supd
View File

@@ -1,8 +1,13 @@
#!/usr/bin/env bash
shopt -s nullglob
# Defaults for XDG
if ! [[ "$XDG_RUNTIME_DIR" ]]; then
XDG_RUNTIME_DIR="/run/user/$UID"
fi
# Defaults
cfg_workdir="/tmp/$USER/supd"
cfg_workdir="$XDG_RUNTIME_DIR/supd"
cfg_scan_delay='30'
msg() { printf '%s\n' "$*"; }