From 5bcdbb2249896bdc477df7e0d9c7865155db476e Mon Sep 17 00:00:00 2001 From: Max Harmathy Date: Fri, 12 Jan 2018 14:16:43 +0100 Subject: [PATCH] login: avoid external process call Use a shell builtin of posix shells insteaf of calling 'which'. See also http://stackoverflow.com/a/677212 --- xorg/50-systemd-user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xorg/50-systemd-user.sh b/xorg/50-systemd-user.sh index 4d49767228..5588185c50 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