GNOME Do Twitter Plugin

at 12:30:20 am
filed under projects, software

overview

A simple little plugin for GNOME Do that lets you post to twitter.

As of version 0.5, this plugin is now packaged with do-plugins (sorry about the delay, David). If you wish to obtain the source please check it out from launchpad. Per user requests I will continue to provide precompiled libraries here.

As The ChuX NorriX Blog noted this acts as a sort of meta-plugin for Do, giving you access to any web service that can read from a twitter feed (e.g. Remember the Milk).

Check out also my del.icio.us plugin for Do.

As always, feedback much appreciated. Enjoy!

license

GPL blah blah blah.

dependencies

If you are using the precompiled dll, make sure that you have libgconf2.0-cil and libndesk-dbus1.0-cil installed.

download

changelog

0.1
Created
0.2
* moved authentication to GConf
0.3
! Updated to work with changes in the Do interface
0.4
! Fixed to work behind proxies (thank you Polaris)
0.5
* Added feedback through notification-daemon
* New icon

24 comments

RSS / trackback

respond

  1. Makario

    on Wednesday 30 January, 2008 at 2:20:09 pm

    Good job on the plugin; I’m using it and it works great.

  2. Polaris

    on Tuesday 11 March, 2008 at 2:43:56 am

    gnome-do freezes when I try and send a twitter update, the only way I can stop it is by switching to a VT and killing it from the command line. Gconf settings are ok — at least they seem to be — and the network proxy is configured. Can the proxy be the problem ? I glanced at the source code, and from what I see, the web request does not handle it.

    (shuffles a bit through Mono documentation)

    I don’t do C#, but from what I see, adding a couple of lines for the proxy would do the trick:

    <pre try {
    http_proxy = gconf.Get (”/system/http_proxy/host”) as String;
    request.Proxy = new WebProxy(http_proxy, 3128);
    } catch (GConf.NoSuchKeyException) {

    }

  3. jherran

    on Monday 17 March, 2008 at 11:11:31 pm

    Can’t compile it.

    [jherran@gazelle ~/Desktop/downloads/Twitter]$ gmcs -target:library -r:System -r:Mono.Posix -r:/usr/lib/do/Do.Addins Twiter.cs -pkg:gconf-sharp-2.0
    Twitter.cs(17,32): error CS0246: The type or namespace name `IAction’ could not be found. Are you missing a using directive or an assembly reference?
    Compilation failed: 1 error(s), 0 warnings

    Could you please tell me how can I solve it?

    Regards

  4. Jacob

    on Tuesday 18 March, 2008 at 6:04:39 am

    It looks like you’re using an older version of Do - this is based on the most recent bzr.

    Either get the latest source for Do or download one of the older versions of the Twitter plugin (0.2 would probably be your best bet).

  5. John E.

    on Tuesday 18 March, 2008 at 7:57:29 am

    0.4 doesn’t work with GNOME Do 0.4 here. It does report “Successfully loaded “Tweet” action.” at startup, but typing “twe..” does nothing.

  6. David

    on Tuesday 18 March, 2008 at 6:56:25 pm

    This is a very popular Do plugin. Would you mind sprucing it up a bit (Mono coding guidelines, shinier icon(?), libnotify popup confirming successful tweet) so we can package it with the other official Do plugins? When you want to merge it, apply for membership in do-plugins.

  7. Dave

    on Thursday 20 March, 2008 at 8:33:56 am

    Would you mind adding some of these links and information on the official wiki? https://wiki.ubuntu.com/GnomeDo/Plugins/Twitter

  8. Alex Launi

    on Saturday 22 March, 2008 at 9:11:14 am

    Can you continue to stick the .dll up here?

  9. Alex Launi

    on Saturday 22 March, 2008 at 10:55:37 am

    Hey, what libraries does one need to compile this plugin? I wrote a small patch for the notifications but I can’t compile/test it.

  10. Jacob

    on Saturday 22 March, 2008 at 11:05:05 am

    System and Mono.Posix
    ndesk-dbus
    gconf-sharp
    and the usual Do dependencies (Do and Do.Addins)

    Obviously, you also need notification-daemon running for the notifications to show up.

  11. John E.

    on Saturday 22 March, 2008 at 2:59:39 pm

    Interestingly, 0.5 also refuses to work with Do 0.4.

  12. Jacob

    on Saturday 22 March, 2008 at 3:23:45 pm

    It’s possible that you’re missing some of the dependencies. Make sure you have libgconf2.0-cil and libndesk-dbus1.0-cil installed.

  13. Alex Launi

    on Wednesday 02 April, 2008 at 5:14:11 pm

    Hey, I’ve written some patches to your Twitter plugin including contact autocompletion for replying. I’ve got them in my Do code branch. https://code.launchpad.net/~alexlauni/do/alauni-plugins. You should merge them, it’s a good addition. I would have emailed you but I couldn’t find any contact info on your site.

  14. Jacob

    on Wednesday 02 April, 2008 at 10:01:40 pm

    That looks awesome - thank you so much for the patch.

  15. Alex Launi

    on Wednesday 02 April, 2008 at 10:02:40 pm

    I suppose calling it a “patch” isn’t exactly accurate on either of our parts, but hey, what’s it between friends right? :) Glad you like.

  16. Trackbacks

    on Tuesday 13 May, 2008 at 12:07:26 pm