]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
bin/xlockscreen: use exec where possible
authorSimon Ruderich <simon@ruderich.org>
Tue, 25 Aug 2015 09:24:42 +0000 (11:24 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 25 Aug 2015 09:24:42 +0000 (11:24 +0200)
bin/xlockscreen

index 3cd3be7a9822860821fc5ea632dbf02290a3f2e2..2997692652d50037bf33fbf6cc607b98aa2a42eb 100755 (executable)
@@ -89,9 +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
     elif installed xtrlock; then
         # Sleep is necessary to allow xtrlock to grab the keyboard input.
         sleep 1
-        xtrlock
+        exec xtrlock
     elif installed xlock; then
     elif installed xlock; then
-        xlock
+        exec xlock
     else
         echo 'No screen locker found!'
         exit 1
     else
         echo 'No screen locker found!'
         exit 1