On Tuesday 21. September 2010 23.46.35 you wrote:
> > DBUS_SESSION_BUS_WINDOWID=2097153
> 
> this method works in MeeGo
> 
> > Even:
> > ~ $ DISPLAY=:0 xprop -id 2097153
> > _DBUS_SESSION_BUS_PID(CARDINAL) = 2240
> > _DBUS_SESSION_BUS_ADDRESS(STRING) = "unix:abstract=/var/tmp/dbus-
> > Q0hEx2EutZ,guid=bf3858a278afe694d3e5716f0000000d"
> 
> this doesn't...

Well, the window ID might change. Did you use the ID that you got from dbus-
launch?

Getting the ID without dbus-launch is quite hard.

> > The address is also stored in a file in the user's home directory:
> > 
> > ~ $ cat ~/.dbus/session-bus/`cat /var/lib/dbus/machine-id `-${DISPLAY#:}
> > # This file allows processes on the machine with id
> > 34c4eb0b08ea6c20b83bef9c00000006 using
> > # display :0 to find the D-Bus session bus with the below address.
> > # If the DBUS_SESSION_BUS_ADDRESS environment variable is set, it will
> > # be used rather than this file.
> > # See "man dbus-launch" for more details.
> > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/var/tmp/dbus-
> > Q0hEx2EutZ,guid=bf3858a278afe694d3e5716f0000000d
> > DBUS_SESSION_BUS_PID=2240
> > DBUS_SESSION_BUS_WINDOWID=2097153
> 
> This also doesnt work, not sure why, but I'm not too worried unless I
> see a bugreport :)

Probably my shell-fu in ${DISPLAY#:}. I don't think it's correct.

For DISPLAY=:x.y, the file contains just "x". You have to drop the colon and 
the screen number.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to