1 2 3 4 5 6 7 8 9
#!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin 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