trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: October 2016

Re: [Bulk] Re: [trinity-users] Re: TDE equivalent to kdelibs4c2a?

From: Michele Calgaro <michele.calgaro@...>
Date: Fri, 14 Oct 2016 14:09:22 +0200
On 2016/10/13 12:02 PM, Dr. Nikolaus Klepp wrote:
> Am Donnerstag, 13. Oktober 2016 schrieb Michael .:
>> [...] Anyway what I am after is
>> something that supplies a notification to the user that updates are
>> available, like update-notifier does. Synaptic is installed by default on
>> my systems, and so is aptitude, but I want to provide my users with a
>> visual notification when updates are available. Any suggestions for a
>> package that does that is greatly appreciated.
> 
> A simple way for update notifier:
> 
> 1) run "apt-get update" on boot and/or every day/hour/... as a cronjob, ignore errors:
> 
> # crontab -e
> 0 10 * * * apt-get update 2>/dev/null
> 
> # /etc/rc.local - add this line:
> (sleep 10m; apt-get update 2>/dev/null) &
> 
> 2) create a file ".trinity/Autostart/updatenotifier.desktop":
> 
> $ cat > ~/.trinity/Autostart/updatenotifier.desktop << XXX
> [Desktop Entry]
> Comment=
> Exec[$e]=if [ $(apt-get --just-print dist-upgrade | grep "^ " | wc -l) -gt 0 ]; then xmessge "Upgrades available!"; exit; fi
> GenericName=
> Icon=application-x-executable
> MimeType=
> Name=
> Name[de]=
> Path[$e]=
> StartupNotify=true
> Terminal=false
> TerminalOptions=
> Type=Application
> X-DCOP-ServiceType=
> X-TDE-SubstituteUID=false
> X-TDE-Username=
> 
> XXX
> 
> Your user will get a message if updates are available just after login. Now you can get creative :-)
> 
> Nik
> 
> 

Fantastic!! Many thanks Nik.
Cheers
  Michele



Attachments: