Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44

Thread: Ubuntu Notify: notifies you of a new message in TB via notify-osd

  1. #1
    Join Date
    Aug 2007
    Location
    Netherlands
    Beans
    168
    Distro
    Ubuntu Development Release

    Ubuntu Notify: notifies you of a new message in TB via notify-osd

    Hello all,
    I created this addon to notify the user of a new mail message in Thunderbird via notify-osd, but I don't know if I have done it right. It works all right, but I have a couple of issues: I use javascript to run a compiled C file, will that work on all different Ubuntu Jaunty computers or is there a better way to do it?
    Also, in C I use the libnotify library, is this the correct library for the new notification system?
    Your feedback is very welcome.
    Cheers,
    Ruben
    P.S.: you can download the addon via: This link
    To view the source of the C file use This link

  2. #2
    Join Date
    Jul 2007
    Location
    Oslo, Norway
    Beans
    25
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    Hi Ruben,

    I grabbed your nifty little add-on via the Thunderbird add-ons-page, and added to ThunderBird v 2.0.0.21 in 64-bit Ubuntu 9.04. However, after installing it, no changes in notify-OSD is seen. It doesn't notify when new mails arrive. Perhaps we could figure out why?

    If this code is programmed correctly it is bound to have a place in future versions of thunderbird, as this is on the to do-list for notify-OSD.

  3. #3
    Join Date
    Aug 2007
    Location
    Netherlands
    Beans
    168
    Distro
    Ubuntu Development Release

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    Thanks for your reply!
    Well, I think I know exactly what the problem is . You are using 64-bit Ubuntu, while I'm using 32-bit Ubuntu. And the application uses a compiled C program.
    I'm not too sure how to fix this though - should I create separate 32 and 64 bit versions?

  4. #4
    Join Date
    Jul 2007
    Location
    Oslo, Norway
    Beans
    25
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    That sounds like the most probably cause, yes. I'm by all means not a programmer, however, I've seen several other add-ons and applications that come in separate 32-bit and 64-bit versions. This makes me think that the same solution would be appropriate for your add-on.

    If you're able to create a 64-bit version, I hereby volunteer as a crash-test dummy

  5. #5
    Join Date
    Aug 2007
    Location
    Netherlands
    Beans
    168
    Distro
    Ubuntu Development Release

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    Could you help me in creating this 64-bit version then?
    You have a 64-bit Ubuntu machine, so it will be easier for you to compile a 64-bit executable than it will be for me. I will attach a zipped c source file, and if you want to help, here is how to compile it:
    Go to a terminal and type:
    Code:
    sudo apt-get install libnotify1
    When it is installed, browse to the directory where you have saved my attachment (cd ~ if you have saved it in your home folder) and type the following in the terminal:
    Code:
    gcc -o ubuntu-notify-amd64 ubuntu-notify.c `pkg-config --libs libnotify --cflags gtk+-2.0`
    Then please zip the resulting executable file and post it here as an attachment so I can include it in the addon.
    Thanks in advance!
    Ruben
    Attached Files Attached Files

  6. #6
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Beans
    10,285
    Distro
    Ubuntu

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    I'm hoping that the 64 bit version works because I'd love thunderbird to display it's notifications through libnotify

  7. #7
    Join Date
    Jul 2007
    Location
    Oslo, Norway
    Beans
    25
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    Ruben, please see the attached file.

    The command you told me to run resulted in erroneous output:

    Code:
    Package libnotiy was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libnotiy'
    to the PKG_CONFIG_PATH environment variable
    No package 'libnotiy' found
    Package gtk+-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-2.0' found
    So I read the man pages for gcc, and then more importantly pkg-config, as well as searching the net for answers. I knew that I had both the required packages installed, but I thought that I was missing some other dependencies. Build-essentials was there, but not the development-packages. So I installed libnotify-dev and libgtk2.0-dev, and the gcc-cmd with the source code you provided worked out fine. It should be ok for build and install now. Hopefully
    Attached Files Attached Files

  8. #8
    Join Date
    Apr 2006
    Location
    Atlanta, USA
    Beans
    427

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    You need the package 'libnotify-dev'.

    It looks like you also might need some GTK dev packages.
    Here we are, trapped in the amber of the moment. There is no why.

  9. #9
    Join Date
    Jul 2007
    Location
    Oslo, Norway
    Beans
    25
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    Thanks for wanting to help, johnl, but I figured it out. Did you even read what I wrote?

  10. #10
    Join Date
    Apr 2006
    Location
    Atlanta, USA
    Beans
    427

    Re: Ubuntu Notify: notifies you of a new message in TB via notify-osd

    Quote Originally Posted by tbone7 View Post
    Thanks for wanting to help, johnl, but I figured it out. Did you even read what I wrote?
    Apparently not quite enough of it. Whoops.

    Glad you figured it out
    Here we are, trapped in the amber of the moment. There is no why.

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •