Archives for: January 2005, 11

01/11/05

GaimDbus

A picture says 100x more than words...

GaimDbus sample 1 (thumb)
(thumbnail is link to original picture)

This makes me feel good :-)

The picture shows how I started and stopped xscreensaver a few times (by issuing "xscreensaver-command -activate" on a console), in the bottom left corner you can see the desktop-event-notification executable running (I did not daemonize it yet), and last but not least the Gaim debug window where my Gaim plugin shows it's received some DBUS messages sent by the server.

There is on major bug: XScreensaverStarted isnt always catched by the listener, nor by "xscreensaver-demo -watch". I will have to contact the xescreensaver maintainer I guess.

Next to this: the actual "set me away" isnt done yet. This shouldn't be too hard now, calling some functions when a DBUS message is received.

I included all necessary autotools stuff too, so it's as easy as sh autogen.sh && ./configure && make && make install.

I hope I'll be able to code the other parts tomorrow. Sleep now.

Big thanks to everyone hacking on DBUS, the guys at #gaim@freenode, and Google ;-)

Permalink . Ikke . 10:51:49 pm . 182 Words . Technology, Linux, Desktop . . 226 views . 3 comments
Session Bus working, Gentoo GDM patch and Xscreensaver jay'ness

signal interface=com.eikke.DesktopEventNotification; member=XScreensaverEvent; sender=:1.58
string:ScreensaverStarted
signal interface=com.eikke.DesktopEventNotification; member=XScreensaverEvent; sender=:1.58
string:ScreensaverStopped

Next to this, I got my session bus working thanks to the nice guys on the DBUS mailing list, Ross' IBM article and some custom hacking.

Now my session bus is started when I log in, patch for GDM's Xsession file submitted into the Gentoo Bugzilla

Next task: simple DBUS listener to test the Xscreensaver notification stuff, and write the Gaim plugin.

[edit]
DBUS test listener is done:

./dbus-watch-test
Event received: ScreensaverStarted
Event received: ScreensaverStopped

TODO:
- Gaim plugin (get DBUS inside Gaim's Glib mainloop)
- Daemonize the event submitter

Permalink . Ikke . 05:33:03 pm . 124 Words . Technology, Linux, Desktop . . 237 views . Leave a comment