Modify the launcher script to export the DBUS_SESSION_BUS_ADDRESS environment variable
authorPete Fotheringham <pete.fotheringham@codethink.co.uk>
Wed, 25 Jan 2012 10:57:28 +0000 (10:57 +0000)
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>
Tue, 31 Jan 2012 09:25:03 +0000 (09:25 +0000)
mac/launcher.sh

index d92f9e5..88baf22 100755 (executable)
@@ -165,4 +165,8 @@ if /bin/expr "x$1" : '^x-psn_' > /dev/null; then
     shift 1
 fi
 
+# The app needs to know the DBUS Session bus address
+DBUS_SESSION_BUS_ADDRESS=unix:path=$(launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET) 
+export DBUS_SESSION_BUS_ADDRESS
+
 $EXEC "$bundle_contents/MacOS/$name-bin" "$@" $EXTRA_ARGS