From: Max Harmathy Date: Fri, 12 Jan 2018 13:16:43 +0000 (+0100) Subject: login: avoid external process call X-Git-Tag: v237~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bcdbb2249896bdc477df7e0d9c7865155db476e;p=thirdparty%2Fsystemd.git login: avoid external process call Use a shell builtin of posix shells insteaf of calling 'which'. See also http://stackoverflow.com/a/677212 --- diff --git a/xorg/50-systemd-user.sh b/xorg/50-systemd-user.sh index 4d497672283..5588185c503 100755 --- a/xorg/50-systemd-user.sh +++ b/xorg/50-systemd-user.sh @@ -2,6 +2,6 @@ systemctl --user import-environment DISPLAY XAUTHORITY -if which dbus-update-activation-environment >/dev/null 2>&1; then +if command -v dbus-update-activation-environment >/dev/null 2>&1; then dbus-update-activation-environment DISPLAY XAUTHORITY fi