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:
parent
8647283e45
commit
5bcdbb2249
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
systemctl --user import-environment DISPLAY XAUTHORITY
|
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
|
dbus-update-activation-environment DISPLAY XAUTHORITY
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue