Ikke's Blog

Post details: More messaging

May 16
More messaging

Been busy lately due to uni work, so not much hacking time. I did enhance that messaging thing a little (not working on other stuff I'd like to work on yet as they're potential SoC projects :-)).

wall, write and other pty based communication support still isn't in there as I didn't manage to get something working (yet). Must be doing something completely wrong somehow.

I did add a "Reply" option to the incoming messages though. Currently the reply dialog is not HIG at all, no I18N support, it's crap PyGTK code, but it does work somewhat.

Here's a little demo (1MB animated GIF screencast, thanks Byzanz (and Company)!)

I made a first "release" for people who's want to play with this. You can find the tarball here, but note it needs work: checking for Python stuff in configure.in, fixing Python code, adding I18N support, get the dialog code inside the C daemon, as using a helper is plain stupid (I use a helper as it's pretty easy to create a GUI using PyGTK quickly).

TODO: incoming message throttling (so one can't flood you using smbclient in a shell for loop), I18N (damn intltool 's been driving me crazy), nicer UI, other messaging "protocol" support, get a Telepathy backend out of this (jdub's idea),...


Comment from: William Rea [Visitor] · http://willrea.be
Very awesome! Keep it up
PermalinkPermalink 05/16/06 @ 16:53
Comment from: Tincan [Visitor]
Cool stuff. Just keep in mind this is one of those services that is likely to be abused by malicious coders and and spammers. That is why most pople turm off the messaging service in windows these days. It would be nice to build in safe gaurds from the groud up rather than suffer the same fate as windows when Linux becomes mainstream.
PermalinkPermalink 05/16/06 @ 17:26
Comment from: Ikke [Member] · http://www.eikke.com
Heh, first of all, one shouldn't open his SMB ports to the internet so spammers shouldn't be able to access your smbd service ;-)
I could add an option to display only incoming messages from the local network, for example.
PermalinkPermalink 05/16/06 @ 17:38
Comment from: Richard Stellingwerff [Visitor] · http://www.stellingwerff.com
Hi, I wanted to try it out myself on ubuntu dapper drake, but it's not working for me.

When running, I get this error message:
File "dbus_bindings.pyx", line 1783, in dbus_bindings.bus_request_name
dbus_bindings.DBusException: Connection ":1.3" is not allowed to own the service "org.gnome.Messaging" due to security policies in the configuration file

Any idea what's wrong?
PermalinkPermalink 05/16/06 @ 19:05
Comment from: Ikke [Member] · http://www.eikke.com
Looks like the dbus system.d authorisation file isnt at the right location, you didnt kill -HUP your system dbus service, or samba uses another user than "nobody" to spawn message command files.
Were you trying to run the "message command" helper as a normal user?
PermalinkPermalink 05/16/06 @ 19:39
Comment from: Richard Stellingwerff [Visitor] · http://www.stellingwerff.com
Ahhh you are right, it didn't install gnome-messaging.conf in /etc/dbus-1/system.d but /usr/etc/dbus-1/system.d. After copying it into the right place and -HUP'ing dbus, it works.

Very cool little app, this.
PermalinkPermalink 05/17/06 @ 22:48
Comment from: Ikke [Member] · http://www.eikke.com
Captcha test
PermalinkPermalink 05/27/06 @ 21:32
Comment from: gimpel [Visitor]
very nice app. kould make me get rid of klinpopup and also of a bunch of kde services needed for it - linpopup doesn't work right here.

But is there any chance to disable the close-massage-countdown and let me decide when to close it? and may it be in the source directly.
PermalinkPermalink 08/13/06 @ 15:40
Comment from: Kevin [Visitor] Email

very nice work there. Could you list all dependencies to be installed? And where can I find documentation about this dbus and/or gnome notification api?

PermalinkPermalink 05/29/07 @ 22:53
Comment from: Cody Harris [Visitor] Email · http://blog.vectec.net
Any progress on this? I've been trying to do this myself, but I can't figure it out.
PermalinkPermalink 11/08/07 @ 04:21
Comment from: Ikke [Member] · http://www.eikke.com
Err, not really... Doing the "wall" thing didn't work out, so I gave up.
PermalinkPermalink 11/08/07 @ 10:50

This post has 1 feedback awaiting moderation...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))


Who's Online?

  • Guest Users: 203


XML Feeds

What is RSS?