Skip to content

Commit

Permalink
login: avoid external process call
Browse files Browse the repository at this point in the history
Use a shell builtin of posix shells insteaf of calling 'which'.
See also http://stackoverflow.com/a/677212
  • Loading branch information
harmathy authored and poettering committed Jan 12, 2018
1 parent 8647283 commit 5bcdbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xorg/50-systemd-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5bcdbb2

Please sign in to comment.