PDA

View Full Version : using DBUS in applications...


s0l1dsnak3123
December 27th, 2007, 10:23 PM
hey everyone!

I'm working on a perl script which uses DBUS to communicate with compiz. I found a page that contains a command that will let you spin the cube left and right ( http://forum.compiz-fusion.org/showpost.php?p=1167&postcount=4 ). I cannot, get this to work in my script. Now I realise this is not a perl forum, but it would be helpful to me if I found out why I am getting this error:

Failed to open connection to session message bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


Thanks in advance, and if all turns out well, I'll keep the compiz community posted ;)

s0l1dsnak3123

Deciare
December 28th, 2007, 12:33 AM
Have you confirmed whether using dbus-send (as given in the example you linked) command on a regular shell works?

some-guy
December 28th, 2007, 02:41 AM
enable the DBUS plugin :D

s0l1dsnak3123
December 28th, 2007, 11:59 AM
i can confirm that the code works in shell, and i have enabled DBUS.

[edit] I now have it working :D I had to add a backslash to the $4 part. Now I need to find other DBUS commands to add to my program **evil grin**

[edit2] I have it working... kinda :/ I have found that sometimes I get this error, sometimes I don't. If I go looking through DBUS and then run the program it will get that message, but if I don't - I wont... thats really strange 0-0