#!/bin/bash ENABLED=yes [[ ${ENABLED} == "yes" ]] || exit 0 set -a eval "$(systemctl --user show-environment)" set +a 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