X Tutup
Skip to content

Commit 5bcdbb2

Browse files
harmathypoettering
authored andcommitted
login: avoid external process call
Use a shell builtin of posix shells insteaf of calling 'which'. See also http://stackoverflow.com/a/677212
1 parent 8647283 commit 5bcdbb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xorg/50-systemd-user.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
systemctl --user import-environment DISPLAY XAUTHORITY
44

5-
if which dbus-update-activation-environment >/dev/null 2>&1; then
5+
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
66
dbus-update-activation-environment DISPLAY XAUTHORITY
77
fi

0 commit comments

Comments
 (0)
X Tutup