login: avoid external process call

Use a shell builtin of posix shells insteaf of calling 'which'.
See also http://stackoverflow.com/a/677212
This commit is contained in:
Max Harmathy 2018-01-12 14:16:43 +01:00 committed by Lennart Poettering
parent 8647283e45
commit 5bcdbb2249
1 changed files with 1 additions and 1 deletions

View File

@ -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