]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - bin/xlockscreen
bin/xlockscreen: use exec where possible
[config/dotfiles.git] / bin / xlockscreen
index 88dbee5f1fcd58bcbcbd0967d1b137cea8f54f73..2997692652d50037bf33fbf6cc607b98aa2a42eb 100755 (executable)
@@ -89,7 +89,9 @@ elif test x"$1" = xlock; then
     elif installed xtrlock; then
         # Sleep is necessary to allow xtrlock to grab the keyboard input.
         sleep 1
-        xtrlock
+        exec xtrlock
+    elif installed xlock; then
+        exec xlock
     else
         echo 'No screen locker found!'
         exit 1