Skip to content

Instantly share code, notes, and snippets.

@pet1330
Forked from marc-hanheide/dbus-config.sh
Created August 27, 2020 14:22
Show Gist options
  • Save pet1330/3bccec8395f0be1f507149486eaabb92 to your computer and use it in GitHub Desktop.
Save pet1330/3bccec8395f0be1f507149486eaabb92 to your computer and use it in GitHub Desktop.
connect to Dbus (in gnome session) via SSH
# source this to set the dbus env in a gnome session
export DISPLAY=:0
PID=$(pgrep gnome-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
# You may now configure things in gsettings, e.g. run vino:
gsettings reset org.gnome.Vino network-interface
gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino notify-on-connect true
gsettings set org.gnome.Vino require-encryption false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment