diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-22 15:53:26 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-22 15:53:26 -0400 |
commit | 9abaebb597d396a24c51f7c7c03e4145963f6bb1 (patch) | |
tree | 177198f7d6095d235341e6ee8a8f079e9b7a9b36 /.config | |
parent | 6fd75fa99cc547ed9b9aa3657d698ac9552cc7f9 (diff) |
.config/login.d/02_xdg_runtime_dir.sh only runs on login, no need for a check
In fact, the check broke the Purdue CS boxes because it was being run under
the Xsession program, which is not a login shell.
Diffstat (limited to '.config')
-rw-r--r-- | .config/login.d/02_xdg_runtime_dir.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/login.d/02_xdg_runtime_dir.sh b/.config/login.d/02_xdg_runtime_dir.sh index 864eadd..6db58af 100644 --- a/.config/login.d/02_xdg_runtime_dir.sh +++ b/.config/login.d/02_xdg_runtime_dir.sh @@ -1,7 +1,7 @@ #!/hint/sh # Set XDG_RUNTIME_DIR if we can -if [ -z "$XDG_RUNTIME_DIR" ] && shopt -q login_shell && type flock &>/dev/null; then +if [ -z "$XDG_RUNTIME_DIR" ] && type flock &>/dev/null; then _diy_xdg_runtime_login() { export XDG_RUNTIME_DIR="$XDG_CACHE_HOME/xdg-runtime-dir/$HOSTNAME" if ! [ /dev/fd/7 -ef "$XDG_CACHE_HOME/xdg-runtime-dir/.lock" ]; then |