summaryrefslogtreecommitdiff
path: root/xorg
diff options
context:
space:
mode:
authorMax Harmathy <max.harmathy@web.de>2018-01-12 14:16:43 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-12 18:02:57 +0100
commit5bcdbb2249896bdc477df7e0d9c7865155db476e (patch)
treed2904a4dc0d7e2fb23f6758f66d851395831f0b2 /xorg
parent8647283e453e4039029e2b21270241fa4010b3d8 (diff)
downloadsystemd-5bcdbb2249896bdc477df7e0d9c7865155db476e.tar.gz
login: avoid external process call
Use a shell builtin of posix shells insteaf of calling 'which'. See also http://stackoverflow.com/a/677212
Diffstat (limited to 'xorg')
-rwxr-xr-xxorg/50-systemd-user.sh2
1 files changed, 1 insertions, 1 deletions
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