mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
5bcdbb2249
Use a shell builtin of posix shells insteaf of calling 'which'. See also http://stackoverflow.com/a/677212
8 lines
203 B
Bash
Executable File
8 lines
203 B
Bash
Executable File
#!/bin/sh
|
|
|
|
systemctl --user import-environment DISPLAY XAUTHORITY
|
|
|
|
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
|
|
dbus-update-activation-environment DISPLAY XAUTHORITY
|
|
fi
|