Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #1161

Re: linux: desktop notification library?

From Tim Watts <tw@dionic.net>
Newsgroups comp.os.linux.misc, comp.programming, comp.unix.programmer
Subject Re: linux: desktop notification library?
Followup-To comp.os.linux.misc
Date 2011-05-18 18:23 +0100
Organization A noiseless patient Spider
Message-ID <8ubda8-mch.ln1@squidward.dionic.net> (permalink)
References <4dd3bba1$0$31206$a729d347@news.telepac.pt> <VtudnXqugtUhe07QnZ2dnUVZ_jGdnZ2d@posted.localnet>

Cross-posted to 3 groups.

Followups directed to: comp.os.linux.misc

Show all headers | View raw


Robert Heller wrote:

> At Wed, 18 May 2011 13:29:22 +0100 Rui Maciel <rui.maciel@gmail.com>
> wrote:
> 
>> 
>> Is there any library that handles desktop notification that is
>> independent
>> of any desktop environment?  I've stumbled on libnotify[1] but it appear
>> to be tied to GNOME.
> 
> There isn't one.  One of the *great* things about Linux and UNIX, in
> addition to the fact that users are not tied to one specific desktop
> environment (or to using *any* 'desktop environment' at all).
> 

Yep. I *think* sending libnotify events can be decoupled from the choice of 
desktop - have a vague feeling I have used the same client (bit of perl 
using Gtk2::Notify) to signal notifactions which were handled by both KDE 
and Gnome.

The handling may not be "native" but both seemed to sport applets that would 
handle such messages. The applets are different and look different, but the 
functionality is common.

So notify is probably the best bet. In theory you can always knock up a 
cheap and cheerful X11 based one for the usage case where a heavier desktop 
is undesireable. Even a non gui app that spews them to STDOUT and run it in 
an xterm would be feasible.

libnotify itself is fairly lightwieght:

dpkg -s libnotify1
<snip>
Depends: libc6 (>= 2.7), libdbus-glib-1-2 (>= 0.78), libglib2.0-0 (>= 
2.16.0), libgtk2.0-0 (>= 2.18.0)

So I don't see a serious problem there.

-- 
Tim Watts

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

linux: desktop notification library? Rui Maciel <rui.maciel@gmail.com> - 2011-05-18 13:29 +0100
  Re: linux: desktop notification library? Robert Heller <heller@deepsoft.com> - 2011-05-18 10:33 -0500
    Re: linux: desktop notification library? Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-05-18 16:53 +0100
    Re: linux: desktop notification library? Aragorn <aragorn@chatfactory.invalid> - 2011-05-18 18:02 +0200
      Re: linux: desktop notification library? scott@slp53.sl.home (Scott Lurndal) - 2011-05-18 16:43 +0000
      Re: linux: desktop notification library? Robert Heller <heller@deepsoft.com> - 2011-05-18 11:56 -0500
    Re: linux: desktop notification library? Tim Watts <tw@dionic.net> - 2011-05-18 18:23 +0100
      Re: linux: desktop notification library? Rui Maciel <rui.maciel@gmail.com> - 2011-05-18 19:21 +0100
        Re: linux: desktop notification library? Robert Heller <heller@deepsoft.com> - 2011-05-18 14:11 -0500
          Re: linux: desktop notification library? Rui Maciel <rui.maciel@gmail.com> - 2011-05-20 12:03 +0100
            Re: linux: desktop notification library? Robert Heller <heller@deepsoft.com> - 2011-05-20 08:08 -0500
        Re: linux: desktop notification library? Tim Watts <tw@dionic.net> - 2011-05-18 20:28 +0100
          Re: linux: desktop notification library? Rui Maciel <rui.maciel@gmail.com> - 2011-05-20 12:08 +0100

csiph-web