Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Systray app notifying of updated packages?
Date: Tue, 04 Jun 2013 06:28:26
In Reply to: Re: [gentoo-user] Systray app notifying of updated packages? by Walter Dnes
1 On 3 June 2013, at 23:30, Walter Dnes wrote:
3 > On Tue, Jun 04, 2013 at 12:02:27AM +0200, Sebastian Pipping wrote
4 >
5 >> Does anyone know an app sitting in the systray sending/popping
6 >> notifications when installed packages can be updated?
7 >
8 > I'm not aware of any. That could be done under Gentoo, via scripting,
9 > if someone is willing to put in the work. You would need a background
10 > process running "emerge --sync" *AS ROOT* on a daily basis, possibly a
11 > cron job. Then it would have to be followed by
12 >
13 > emerge -pv --deep --update --changed-use @world > updates.txt
15 I think systray notifications are a bad idea, but I don't know that a daily cron job is the answer.
17 requests that one does not sync every 5 minutes. I think current policy might allow 4 times per day, but the only statement I can find on the website is from 2003, "Sync 1-2 times per day, maximum. … Analysis of rsync logs show that a few discourteous users syncing 10, 15 or even 25 times per day are using a disproportionate amount of rsync mirror resources."
19 IMO systray notifications are to tell the user about stuff that's happening *right now* - incoming email or instant messages, tweets, buddies coming online, new comments on your blog or new uploads from your favourite YouTube channel.
21 I think Portage might usefully use systray notifications to tell you that a package has finished installing (so please read the update notes and restart the web / mail server) or that package 11 of 20 has compiled, but I don't think systray notifications should be used for something that happens infrequently, say only once or twice a day.
23 I don't really see the benefit of systray notifications (over a daily email), but if OP really wants that, I think it would be better to write a script that checks the RSS feed of (which I think puts less strain on Gentoo infrastructure) and then parses the updates to see if the package is actually installed on the system, before notifying the user. This is probably a bit more work.
25 Stroller.


Subject Author
Re: [gentoo-user] Systray app notifying of updated packages? Fast Turtle <fturtle@×××××.com>