-
-
Save pet1330/3bccec8395f0be1f507149486eaabb92 to your computer and use it in GitHub Desktop.
connect to Dbus (in gnome session) via SSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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