Skip to content

Instantly share code, notes, and snippets.

@marc-hanheide
Created September 26, 2018 09:19
Show Gist options
  • Select an option

  • Save marc-hanheide/a6ebdcdba22bd6ddd9f82299192cccdd to your computer and use it in GitHub Desktop.

Select an option

Save marc-hanheide/a6ebdcdba22bd6ddd9f82299192cccdd to your computer and use it in GitHub Desktop.
gain access to local running dbus session in gnome
# source or copy this to gain access to a running dbus session in your ssh session
GNOME_SESSION_PID=$(pgrep gnome-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$GNOME_SESSION_PID/environ|cut -d= -f2-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment