Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Tim Watts Newsgroups: comp.os.linux.misc,comp.programming,comp.unix.programmer Subject: Re: linux: desktop notification library? Followup-To: comp.os.linux.misc Date: Wed, 18 May 2011 18:23:52 +0100 Organization: A noiseless patient Spider Lines: 40 Message-ID: <8ubda8-mch.ln1@squidward.dionic.net> References: <4dd3bba1$0$31206$a729d347@news.telepac.pt> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Info: mx04.eternal-september.org; posting-host="5t2zKpA7VvHh24w0EGSEDw"; logging-data="26229"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6cp7ip9VxtLxpIdps6D+L02ljRCNSF48=" User-Agent: KNode/4.4.10 Cancel-Lock: sha1:Oc0gzEvibUCNC81L5SW4ieeJdZ0= Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.misc:1161 comp.programming:335 comp.unix.programmer:621 Robert Heller wrote: > At Wed, 18 May 2011 13:29:22 +0100 Rui Maciel > 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 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