diff options
-rw-r--r-- | desktop/lxpanel/fix_battery_alarm.patch | 47 | ||||
-rw-r--r-- | desktop/lxpanel/lxpanel.SlackBuild | 6 | ||||
-rw-r--r-- | desktop/lxpanel/lxpanel.info | 6 |
3 files changed, 5 insertions, 54 deletions
diff --git a/desktop/lxpanel/fix_battery_alarm.patch b/desktop/lxpanel/fix_battery_alarm.patch deleted file mode 100644 index 2753619444..0000000000 --- a/desktop/lxpanel/fix_battery_alarm.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 19936f24c343437447ef7e765113fc4679df07eb Mon Sep 17 00:00:00 2001 -From: Andriy Grytsenko <andrej@rep.kiev.ua> -Date: Wed, 27 Feb 2019 02:49:00 +0200 -Subject: [PATCH] fix battery alarm when measurement of current is missing. - -See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854643 ---- - ChangeLog | 4 ++++ - plugins/batt/batt.c | 3 ++- - 2 files changed, 6 insertions(+), 1 deletion(-) - -diff --git a/ChangeLog b/ChangeLog -index c0861de..0d610c8 100644 ---- a/ChangeLog -+++ b/ChangeLog -@@ -1,3 +1,7 @@ -+0.10.1 -+------------------------------------------------------------------------- -+* Fixed battery alarm when measurement of current is missing. -+ - 0.10.0 - ------------------------------------------------------------------------- - * Fixed delayed application of font cnahges on dclock and weather plugins. -diff --git a/plugins/batt/batt.c b/plugins/batt/batt.c -index f47549c..cc7bfea 100644 ---- a/plugins/batt/batt.c -+++ b/plugins/batt/batt.c -@@ -111,6 +111,7 @@ static void * alarmProcess(void *arg) { - sem_wait(a->lock); - if (system(a->command) != 0) - g_warning("plugin batt: failed to execute alarm command \"%s\"", a->command); -+ sleep(51); /* do not spam messages more often than once a minute */ - sem_post(a->lock); - - g_free(a); -@@ -257,7 +258,7 @@ void update_display(lx_battery *lx_b, gboolean repaint) { - isCharging = battery_is_charging ( b ); - - /* Consider running the alarm command */ -- if ( !isCharging && rate > 0 && -+ if ( !isCharging && - ( ( battery_get_remaining( b ) / 60 ) < (int)lx_b->alarmTime ) ) - { - /* FIXME: this should be done using glibs process functions */ --- -2.1.4 - diff --git a/desktop/lxpanel/lxpanel.SlackBuild b/desktop/lxpanel/lxpanel.SlackBuild index cce093b1e7..edbbc89a7e 100644 --- a/desktop/lxpanel/lxpanel.SlackBuild +++ b/desktop/lxpanel/lxpanel.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for lxpanel # (C) 2008 Michael Wagner <lapinours@web.de> -# Copyright 2011-2019 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy +# Copyright 2011-2021 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ # Modified by Matteo Bernardini <ponce@slackbuilds.org> PRGNAM=lxpanel -VERSION=${VERSION:-0.10.0} +VERSION=${VERSION:-0.10.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -74,8 +74,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p1 < $CWD/fix_battery_alarm.patch - sh autogen.sh || true CFLAGS="$SLKCFLAGS" \ diff --git a/desktop/lxpanel/lxpanel.info b/desktop/lxpanel/lxpanel.info index be31b8a229..acb7f1aa94 100644 --- a/desktop/lxpanel/lxpanel.info +++ b/desktop/lxpanel/lxpanel.info @@ -1,8 +1,8 @@ PRGNAM="lxpanel" -VERSION="0.10.0" +VERSION="0.10.1" HOMEPAGE="https://wiki.lxde.org/en/LXPanel" -DOWNLOAD="https://downloads.sf.net/lxde/lxpanel-0.10.0.tar.xz" -MD5SUM="e6a1f9bd5cf39812e1c5d2453a34a7c5" +DOWNLOAD="https://downloads.sf.net/lxde/lxpanel-0.10.1.tar.xz" +MD5SUM="c922d044789c3d7ae028f0e80dea18b0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libfm" |