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


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

Re: linux: desktop notification library?

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

Followups directed to: comp.os.linux.misc

Show all headers | View raw


Rui Maciel wrote:

> Tim Watts wrote:
> 
>> 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.
> 
> Being forced to include a hand full of libraries, including libgtk2.0,
> isn't exactly being lightweight, even more when considering that a project
> is forced to depend on those packages just to be able to trigger DE-
> agnostic notification events.
> 
> If you are developing a GTK project then that's acceptable.  If you are
> developing a project based on some other GUI library then those
> requirements become a bit unacceptable.
> 

I think you're being a bit unrealistic. GTK2 is fairly light and almost 
certainly present on any desktop system that is not an embedded type (no one 
mentioned embedded), just because some app almost certainly depends on it 
irrespective of the desktop/window manager.

I needed a modal MOTD window app that appeared during login for all window 
managers and was lightning quick to start and held up th login process until 
the user clicked OK.

I used QT as it was similarly as lightweight, didn't start helper processes 
all over the place and was easy to work with. I considered GTK2 but QT had 
some nice GUI tools to help build it (I hardly do GUI programming).

If you want to get *really* light, it would be best to implement your own, 
with either shared memory and semaphors (update lock) or a simple network 
server that spews copies of the message stream to any clients that choose to 
connect (and this could be over unix domain sockets, not necessarily a full 
IP stack).

I've had a lot of success with simple messages (SLIP framed) over domain 
sockets - and shared memory is also pretty easy to work with.

Both would be pretty simple, the former probably the simplest and client 
language agnostic - and someone could even add a 2libnotify gateway daemon 
if they wanted to stream all the notifications to the same presentation 
applet.

Cheers

Tim

-- 
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