You are not logged in.

#26 2010-04-30 22:35:16

forkboy
Member
From: Blackpool, England
Registered: 2005-09-03
Posts: 74

Re: archup - the lightweigth archlinux update-notifier

Could I get some help with archup please?  I only want it to show updates once a day, so I have copied /usr/share/doc/archup/cronhourly.example to /etc/cron.daily/archup.sh and changed arch_username to my username.  I don't see any update notifications, looking at /var/log/pacman.log it does synchronize the package lists and if I run archup from the command line on its own I get the update notifications.

Offline

#27 2010-05-14 18:59:44

dabd
Member
Registered: 2008-11-17
Posts: 109

Re: archup - the lightweigth archlinux update-notifier

Can archup be used with scrotwm?

Thanks.

Offline

#28 2010-05-14 19:57:48

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: archup - the lightweigth archlinux update-notifier

dabd wrote:

Can archup be used with scrotwm?

Thanks.

I use Scrotwm with archup without any problem.

Offline

#29 2010-07-03 07:30:44

azleifel
Member
Registered: 2007-10-28
Posts: 476

Re: archup - the lightweigth archlinux update-notifier

I thought that I'd give archup a try because alunn is broken at the moment and it works nicely.  As I use gdm, I just had to change the last line of the cron script a little to get the notifications working.

XAUTHORITY=$(/usr/bin/find /var/run/gdm -path "*${arch_user}*/database") DISPLAY=:0.0 /usr/bin/archup --uid $(id -u $arch_user)

Offline

#30 2010-08-28 05:40:55

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 441

Re: archup - the lightweigth archlinux update-notifier

ancleessen4 wrote:

@flamelab
Cool-patience is a virtue...
I will see what tomorrow brings.

have to activate the cron-daemon in rc.conf ;-)

Offline

#31 2010-11-24 16:48:19

archtaku
Member
Registered: 2010-07-02
Posts: 84

Re: archup - the lightweigth archlinux update-notifier

I have archup scheduled via cron but I'm getting a cron email every time it runs with the following errors:


** (process:320): CRITICAL **: dbus_g_proxy_disconnect_signal: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed

** (process:320): CRITICAL **: dbus_g_proxy_disconnect_signal: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed

Offline

#32 2010-11-25 16:34:53

magemaster
Member
From: Brasil
Registered: 2010-11-24
Posts: 16

Re: archup - the lightweigth archlinux update-notifier

Hello, thanks for this program.
Two things:
-To Xfce4 users, libnotify isn't working with the latest version(0.5.2-1), had to downgrade to 0.4.5.
-For that reason, I had to ignore updates to libnotify, but archup keeps notifying me, can you change archup to not notify ignored packages?

Offline

#33 2010-11-25 16:51:55

Spip
Member
From: USA
Registered: 2010-07-29
Posts: 27

Re: archup - the lightweigth archlinux update-notifier

I added a condition to test if the battery is present on my laptop. Only if it is on AC, I run archup.

You have to test /proc/acpi/battery/*/state

I think it could be great if you implement something like this. An option could be available for people who wants archup on battery.

Offline

#34 2011-01-06 02:50:04

thoffmeyer
Member
From: /dev/zero
Registered: 2006-07-27
Posts: 90
Website

Re: archup - the lightweigth archlinux update-notifier

I like this big_smile

Offline

#35 2011-01-06 19:07:39

rck
Member
Registered: 2011-01-06
Posts: 4

Re: archup - the lightweigth archlinux update-notifier

Hi Rorschach,

I know I should submit a patch or shut up, but I don't have libnotify to test it, so I hope this kind of feedback is okay:
1) manual option-parsing is nasty. why aren't you using getopt_long?
2)

 char *output_string=malloc(23); 
sprintf(output_string,"There are updates for:\n");

You allocate 23 bytes but you write 24. I know, 23 is the nicer number, but don't forget about the trailing null byte.
3)

 if (got_updates == TRUE)
{
   /* some code here */
   free(output_string);
}

You allocate memory in any case, therefore you should free it in any case.

regards, rck

Offline

#36 2011-02-27 17:23:50

aurumix
Member
From: Russia
Registered: 2009-05-04
Posts: 5

Re: archup - the lightweigth archlinux update-notifier

archtaku wrote:

I have archup scheduled via cron but I'm getting a cron email every time it runs with the following errors:


** (process:320): CRITICAL **: dbus_g_proxy_disconnect_signal: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed

** (process:320): CRITICAL **: dbus_g_proxy_disconnect_signal: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed

I have same the same thing.

Offline

#37 2011-03-19 18:49:12

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: archup - the lightweigth archlinux update-notifier

Any idea about this:

lamik wrote:

After the update to version 1.7.1 libnonify, archup an error archup: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory

Offline

#38 2011-03-20 06:15:26

lamik
Member
Registered: 2010-11-25
Posts: 1

Re: archup - the lightweigth archlinux update-notifier

Have changed the libnotify.

notification.h (v.7.1):
NotifyNotification *notify_notification_new                  (const char         *summary,
                                                                                                     const char         *body,
                                                                                                     const char         *icon);

notification.h (v.5.2):
NotifyNotification *notify_notification_new                  (const char         *summary,
                                                                                                     const char         *body,
                                                                                                     const char         *icon,
                                                                                                     GtkWidget          *attach);
In the program archup:
my_notify = notify_notification_new("New updates for Archlinux available!",output_string,NULL,NULL);

Last edited by lamik (2011-03-20 06:34:34)

Offline

#39 2011-03-20 11:29:42

broken pipe
Member
Registered: 2010-12-10
Posts: 216

Re: archup - the lightweigth archlinux update-notifier

i can't build it sad any ideas to fix it? sad

==> Beginne build()...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for setuid... yes
checking for library containing notify_init... -lnotify
checking for pacman... ok
checking for gzip... ok
configure: creating ./config.status
config.status: creating Makefile
gcc -march=amdfam10 -O2 -pipe -Wall -DVERSION=\"@VERSION@\" `pkg-config --cflags --libs gtk+-2.0` archup.c -o archup -lnotify 
gzip archup.1
archup.c: In Funktion »main«:
archup.c:201:3: Fehler: zu viele Argumente für Funktion »notify_notification_new«
/usr/include/libnotify/notification.h:114:21: Anmerkung: declared here
make: *** [archup-bin] Fehler 1
    Breche ab ...

Offline

#40 2011-03-20 11:41:52

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,330
Website

Re: archup - the lightweigth archlinux update-notifier

Did you look at the post above yours?

Offline

#41 2011-03-20 14:16:39

keenerd
Trusted User (TU)
Registered: 2007-02-22
Posts: 647
Website

Re: archup - the lightweigth archlinux update-notifier

On your homepage, you suggest using

/usr/bin/pacman -Sy > /dev/null

and this is slightly horrifying.  Much safer is to use the following:

# Setup
mkdir -p /tmp/localsync
ln -s /var/lib/pacman/local /tmp/localsync &> /dev/null
# Call this regularly
fakeroot pacman -Syy --dbpath /tmp/localsync/ &> /dev/null
pacman -Qqu --dbpath /tmp/localsync/ | wc -l

Does not need root and does not risk serious breakage.

Offline

#42 2011-03-22 07:16:27

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: archup - the lightweigth archlinux update-notifier

broken pipe,

changing:

my_notify = notify_notification_new("New updates for Archlinux available!",output_string,NULL,NULL);

to:

my_notify = notify_notification_new("New updates for Archlinux available!",output_string,NULL);

fixes it.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

Board footer

Powered by FluxBB