diff options
author | Max Harmathy <max.harmathy@web.de> | 2018-01-12 14:16:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-12 18:02:57 +0100 |
commit | 5bcdbb2249896bdc477df7e0d9c7865155db476e (patch) | |
tree | d2904a4dc0d7e2fb23f6758f66d851395831f0b2 /xorg | |
parent | 8647283e453e4039029e2b21270241fa4010b3d8 (diff) | |
download | systemd-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-x | xorg/50-systemd-user.sh | 2 |
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 |