I now found an additional solution which also looks pretty interesting and also works on the FR:

r...@om-gta02 ~ $ grep -v "^#" ~/.dbus/session-bus/`cat 
/var/lib/dbus/machine-id`-0
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-lDMQcjNlsD,guid=afcfe64c6900803381cd39e34b447e98
DBUS_SESSION_BUS_PID=1586
DBUS_SESSION_BUS_WINDOWID=4194305

Alex.

On Thu, 7 Jan 2010, Jose Luis Perez Diez wrote:

El Thursday, 7 de January de 2010 13:51:55 vàreu escriure:
Setting the DISPLAY to :0 didn't work in my case, but the /proc trick
worked. I've got a Moblin 2.1 here and the /proc seems a bit different, so
I use the following code:

export `strings /proc/*/environ|grep DBUS_SESSION|tail -1`

The culprit for diferencences is busybox grep not /proc. Your code should work
with more implemetations of grep than mine.

_______________________________________________
devel mailing list
devel@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/devel

Reply via email to