cairo-clock 0.3.4 in PPA, this and that

I put the latest version of cairo-clock in my PPA. One for gutsy (Ubuntu 7.10) and one for hardy (upcoming Ubuntu 8.04). I should now really update the launchpad-page for cairo-clock with this.

Last weekend I went to FOSDEM’08. This meeting never fails to impress. I attended talks about clutter, pigment, nouveau, Gallium3D, xorg-driver status-report, debian-packaging and met up with GNOME- and xorg-folks mostly, but also some people from KDE-crowd. So what conclusion did I draw from this weekend in Bruxelles? The desktop-graphics landscape for the free desktop is on the right track and we’ll have a lot of fun in the near future.

I’ll be at CeBIT’08 in Hannover, Germany next week maning the GNOME-booth the whole week with Sven “herzi” Herzberg.

I was invited to the gtk+ hackfest in Berlin by the GNOME-foundation. First of all huge thanks for this to the people on the board or committee! I feel very honored. Also big thanks to Canonical for letting me attend it on company time!

19 Responses to “cairo-clock 0.3.4 in PPA, this and that”

  1. Loris Says:

    I’ts great that you could attend FOSDEM: you sure are one not to miss that event.

    Oh, sorry for writing it in here, but I think that a mail I wrote "some" time ago never made it to you…
    It had the updated italian PO for cairo-clock attached to it.

    I’ve uploaded it here:
    URL: http://fallingleaves.netsons.org/it.po

  2. MacSlow Says:

    @ Loris: I got your email regarding that just don’t had the time to work on my growing email-backlog. Weeks are busy right now. I’m still in London atm and will be in Hannover next week and in Berlin the week there after. So I’ll have hardly free time when coming home. I think in about two weeks I will have a bit air to breath and time to catch up on more cairo-clock related things.

  3. pascal Says:

    hey, I’ll be at CeBIT, too, with my multitouch-table, come and have a look at most blatant lowfat-ripoffs :) — Hall 9 Stand B40.
    Gotta come over and thank you in person, though, the gstreamer-gl-code has been used.

    (your captcha has a flaw, if I load the page, an image is displayed. if someone other posts a comment between my loading the page and submitting the captcha, it is said to be invalid! could it possibly be stored in one single file, that is overwritten with every reload? that should most certainly not be…)

  4. MacSlow Says:

    @ pascal: Hey, nice setup you built there! Sure I will come over and pay you a visit. Yeah, a lot of people complain about the captcha! I really have to replace it with something else.

  5. molumen Says:

    Cool! 0.3.3 from the ubuntu repository was always appearing in the default top left part of the screen, but 0.3.4 seems to add the ability to remember the last clock’s position (it appears right where I left it the last time!).

    But there is still an annoying bug. I added Cairo Clock to the additional startup programs list in the session preference dialog so it automatically starts with the system. What happens is that the clock’s background is loaded at the biggest default size (200×200px) even if the startup size is set to custom (130×130px in my case) resulting in a very strange appearance. Here’s a screenshot of what I get: http://img30.picoodle.com/img/img30/4/4/28/f_Screenshotm_06eb73c.png

    Opening properties and manually resetting the theme restores the normal appearance.

  6. molumen Says:

    BTW, I am talking about http://launchpadlibrarian.net/12262222/cairo-clock_0.3.4-0ubuntu2_i386.deb on Ubuntu 8.04, upgraded from version 0.3.3.

  7. smeto Says:

    nice work, but… :)))
    when i started cairo-clock from console or menu launcher, everything is fine. But autostarting with gnome-session show error message "You are not running under a composited desktop-environment (e.g. compiz). cairo-clock cannot work properly without one.". My distro is archlinux, gnome2.22.1,compiz0.7.4

  8. MacSlow Says:

    @ molumen: Uff… ehm… no clue atm. I’ve never seen that happen before.

    @ smeto: You probably have to change the order of cairo-clock and compiz starting up. Make sure cairo-clock is only started _after_ compiz is fully loaded.

  9. Rich Says:

    MacSlow - I was bored this afternoon, I wanted to learn some more about about C, CWIID, and Cairo, so I mashed the CWIID library with cairo-clock. All it does is connects to the wiimote on startup, and replaces the clock rendering with the x-axis accelerometer data represented by the second hand. I guess I want to code up a graphical accelerometer readout, and I figured the best way to start is with something solid, then work in my own features. I will assert the fact that I do not know C, so you will see some very bad coding, but as far as I can tell, it works. I don’t know autotools either, so you have to perform the following modifications to the Makefile in the src directory (and perhaps the root of the source folder…I did it in both):

    GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/path/to/cwiid-0.6.00/common/libcwiid -I/home/rich/Desktop/cwiid-0.6.00/common/include

    GTK_DEP_CFLAGS = -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/librsvg-2

    GTK_DEP_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lrsvg-2 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/path/to/cwiid-0.6.00/libcwiid -lcwiid GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

    Of course change /path/to/cwiid-0.6.00/ to wherever you have the header files for cwiid, and you can leave out the ‘-L/path/to/cwiid-0.6.00/libcwiid’ if it is in your library path (mine isn’t).

    And the diff to your latest tarball (cario-clock.c):

    http://pastebin.com/f32cb24bb

    And it was built againt CWIID 0.6.0 (http://abstrakraft.org/cwiid/)

    Stupid, I know, and at least somewhat entertaining. Thanks for an awesome clock!

  10. Rich Says:

    That should have read:

    GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/home/rich/Desktop/cwiid-0.6.00/common/libcwiid -I/path/to/cwiid-0.6.00/common/include

    GTK_DEP_CFLAGS = -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/librsvg-2

    GTK_DEP_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lrsvg-2 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/path/to/cwiid-0.6.00/libcwiid -lcwiid

    GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

  11. Jayakumar J Says:

    Please somedody help me to adjust the time of Cairo Clock Thanks in Advance

  12. Straws Says:

    [quote]
    nice work, but… :) ))
    when i started cairo-clock from console or menu launcher, everything is fine. But autostarting with gnome-session show error message "You are not running under a composited desktop-environment (e.g. compiz). cairo-clock cannot work properly without one.". My distro is archlinux, gnome2.22.1,compiz0
    [/quote]
    Hi, molumen ,
    I encountered the same problem with you, Have you got some resolve?
    BTW, when I tried to launch it again after system boot up, the background is just OK.

  13. Straws Says:

    Sorry, I quoted the wrong area :(

    [quote]
    But there is still an annoying bug. I added Cairo Clock to the additional startup programs list in the session preference dialog so it automatically starts with the system. What happens is that the clock’s background is loaded at the biggest default size (200×200px) even if the startup size is set to custom (130×130px in my case) resulting in a very strange appearance.
    [/quote]
    Hi, molumen ,
    I encountered the same problem with you, Have you got some resolve?
    BTW, when I tried to launch it again after system boot up, the background is just OK.

  14. Andy Says:

    Just thought I’d add that I have the same problem with custom sizing the clock. On restarting the size has been reset and the hands are misaligned with the clock.

    I can include a screenshot if it helps.

    Andy

  15. gyfzsolt Says:

    there was 2 problems mentioned..not even one solution…nice support mr macslow :P i’m looking after a better clock.

  16. netgrazer Says:

    I, too, am experiencing problems with the clock starting with the wrong size. This problem manifests itself on 2 systems here, even when using the standard settings. I’m thinking about writing a script that automatically runs the clock at startup, closes it, and then opens it again. I’ll probably learn something in the process, but it’s a silly workaround.

  17. netgrazer Says:

    Turns out all cairo-clock needs is a little patience…

    I made a script that pauses for 20 seconds, then starts the clock.
    There’s no need to start it first, pause, and then killall cairo-clock before starting it again.
    So, for those who are still interested in making the cairo-clock run automatically with startup, here’s what to do:

    >> Make a new script file

    ==========
    sudo gedit /usr/bin/cairo-clock.script
    ==========

    >> Paste this in the script

    ==========
    #!/bin/sh

    sleep 20
    cairo-clock &
    exit
    ==========

    >> Make your script executable

    ==========
    sudo chmod a+x /usr/bin/cairo-clock.script
    ==========

    Go to Start Menu>System>Preferences>Sessions
    Under "Startup Programs" add an entry for your script, or modify the one for the clock itself, if it’s still there from earlier attempts.

    The delay may be too short if your machine starts slower than mine

    Things I’ve learned writing this (my first) shell script:

    - It’s supposed to start with a line defining the shell interpreter.
    - sleep [number of seconds] lets you pause a script for a specific time
    - & after a command gives you your prompt back without waiting until it finishes

    Not sure if the exit is necessary, but it seemed tidier.
    Even tidier would have been, finding out which process needs to finish loading (or close) for the clock to function correctly, and starting the clock at just the right time, If anyone reads this far and knows how to do this, please give me pointers!

  18. David Crawford Says:

    Hi, Mac., Seasons’ Greetings. Entschuldigen~Sie, Bitte, aber Ich habe nicht Deutsche fur so vielen Jahre gesprochen…so can we continue in Englisch…? I’m not a technical man, so please excuse the lack of jargon. I have been able to include ‘Cairo~Clock’ in the startup; but the widget is mal~formed and out of scale. I have to click on properties and re~set. I have a custom size of 130 x130. I’m running ‘Mint’ Helena x64. If I hibernate (not me…) and re~login, it’s fine. Any thoughts, please? Vielen Danke, David.

  19. David Crawford Says:

    …..well, it just goes to show…if had looked a little further I would have found the previous comments and suggestions….d’ohh. Didn’t work, though…. Thanks, anyway, DC

Leave a Reply