mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09: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:
committed by
Lennart Poettering
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
|
||||
|
||||
Reference in New Issue
Block a user