Created
October 18, 2012 12:53
-
-
Save XayOn/3911619 to your computer and use it in GitHub Desktop.
Export dbus_session_bus_address on bashrc
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
# This checks if we're connecting via ssh, gets dbus-daemon --session address and exports it. | |
[[ -n $SSH_CLIENT ]] && export $(cat /proc/$(command pgrep -u "$USER" -f -- "dbus-daemon --session" )/environ| tr '\0' '\n' | command grep "DBUS_SESSION_BUS_ADDRESS=") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment