Skip to content

Instantly share code, notes, and snippets.

@qiukun
Created August 6, 2008 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qiukun/4218 to your computer and use it in GitHub Desktop.
Save qiukun/4218 to your computer and use it in GitHub Desktop.
#!/bin/bash
# launches a session dbus instance
dbuslaunch="`which dbus-launch 2>/dev/null`"
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval `$dbuslaunch --sh-syntax --exit-with-session`
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment