You are not logged in.
Hi,
I want to present you http://wiki.archlinux.org/index.php/archup. It's a small C application using libnotify to display desktop-notifications about new archlinux updates.
More informations, screenshots and downloadlinks can be found in the wiki .
Offline
great, i try now !!
Offline
@Rorschach
Just what I was looking for!
Installed,cron job set and waiting for updates notification...
Last edited by ancleessen4 (2010-03-20 21:09:48)
Offline
works perfectly,
Btw. in the cron script is important to change the user_name. Maybe add a note in the wiki.
Offline
Waiting for the cronjob to do its duty.
Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch
Offline
and waiting...
The bash script works if I click on it in /etc/cron.hourly.
#!/bin/bash
arch_user=neil
if [ -z "$(pgrep pacman)" ];then
/usr/bin/pacman -Sy > /dev/null
fi
XAUTHORITY=/home/$arch_user/.Xauthority DISPLAY=:0.0 /usr/bin/archup
As you can see from the screengrab I get a knotify popup telling me there are updates available.
I have yet to see this happen by cron.hourly
Full size http://neilhoughton.com/wp-content/uplo … archup.png
Any tips much appreciated.
Offline
Do you give execute permissions to the script?
Btw, the name of the script is: cron.hourly?
Last edited by n0dix (2010-03-21 14:04:18)
Offline
thanks rorschach, working well here!
My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP
Offline
OK-renamed the script: cron.hourly and executable...
Offline
OK-renamed the script: cron.hourly and executable...
this means, it works, or you do that and didn't work?
Offline
OK-if I click on 'cron.hourly' I get the knotify window popup for 5 seconds showing updates are available.
See my screenshot as before.
So, do I wait now for the cron job to happen in the next hour?
Offline
OK-if I click on 'cron.hourly' I get the knotify window popup for 5 seconds showing updates are available.
See my screenshot as before.
So, do I wait now for the cron job to happen in the next hour?
I supposed are differents ways to do this but i'm not called the script cron.hourly but archup.sh and put it into /etc/cron.hourly/ directory.
Offline
OK-modified accordingly and waiting on cronjob again.
Offline
I'm seeking a notifier which does not use that pop-up window. It interrupts my work.
Last edited by beroal (2010-03-21 15:40:51)
we are not condemned to write ugly code
Offline
Works perfectly! Thanks.
Don't fix it if it ain't broken.
Don't break it if you can't fix it.
Offline
Thanks for your feedback! I updated the wiki in order to better explain how to setup archup. I also created a manpage.
I also released a new version 1.2.
Changelog:
* improved sourcecode documentation
* added commandline options (--help,--version,--timeout|-tm,--maxentries|-m)
* moved timeout and maxentries values from compiletime-options to runtime-options
* replaced the static memory managment with a dynamic one using realloc
* added manpage
* added $DESTDIR support in the make install and make uninstall commands
Offline
thx a lot for this handy app! actually, i love to pacman manually, but this is really nice and extends and improves every arch desktop :>
how do i use knotify? every hour this ugly gtk notify thingy pops up
Offline
knotify is not supported, just libnotify. I also can't find knotify documentation for C or some examples about it and because I don't use KDE I have no idea about this...but patches are welcome!
Offline
Oops, so I am using KDE and this does not work?
Offline
@flamelab
Cool-patience is a virtue...
I will see what tomorrow brings.
Offline
@flamelab: Is there anything special needed to make it run under KDE with knotify? And can I use your screenshot in the wiki?
Last edited by Rorschach (2010-03-22 00:45:06)
Offline
Released new version 1.3. Changelog:
archup-1.3
* some code cleanup, updated docs, ...
* added --uid|-i flag to allow dropping the rights if executed as root-cronjob
* added --command|-c flag to allow a custom updatelist retrival command
* added --urgency|-u flag to choose the urgencylevel and thus the color of the notification
Code hosting moved from launchpad (bzr) to savannah (git) and new webpage: http://www.nongnu.org/archup/
Offline
It works great, but one little thing: it shows packages that I have added to the ignorepkg. There for the the notice constantly shows up, even when there are no packages to update.
Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch
Offline
Very nice tool Rorschachn, thank you.
Because I've build my own repository I've written a little script which runs using your Archup and check for updates of packages in my repository, too.
Website: andrwe.org
Offline