mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user