Skip to content

Instantly share code, notes, and snippets.

@nyameko
Created April 16, 2018 09:39
Show Gist options
  • Save nyameko/928265616a360146d6438977638f0b77 to your computer and use it in GitHub Desktop.
Save nyameko/928265616a360146d6438977638f0b77 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment