X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_bin%2Fgrml-lock;fp=usr_bin%2Fgrml-lock;h=ac05958cae070e1b93dc344c93858be9a78b8f1c;hp=673be73db61b5951c692acf110693eafeb3497a6;hb=9248c3dc0c134d39f6ab70a71c000265d600f737;hpb=2c4bae735e4d236740be8d6508e623e3a427fa9d diff --git a/usr_bin/grml-lock b/usr_bin/grml-lock index 673be73..ac05958 100755 --- a/usr_bin/grml-lock +++ b/usr_bin/grml-lock @@ -44,7 +44,12 @@ and therefore might not work as intended." 7 70 fi lock_desktop() { - sudo physlock -u "$USER" + # be backwards compatible, see https://github.com/grml/grml/issues/87 + if physlock --help 2>&1 | grep -q -- '-u user' ; then + sudo physlock -u "$USER" + else + sudo physlock + fi } is_passwd_set() {