Bug#928814: package-update-indicator grayed out
tags 928814 + patch thanks On Sat, 11 Jan 2020 11:30:36 -0600 jtl wrote: > *Distribution vendors* (i.e. Debian) may override this or any other > default setting by installing a vendor override file alongside the > schema file. > > In short Debian never bothered to configure > package-update-indicator !!! I think that's a bit blunt/rude but basically correct. Please find attached a patch which should set the example default which seemed sensible to me. This is my first patch in a while and first time with some of the new tools so please excuse any errors. I've not strengthened the Recommends gnome-packagekit to Depends because if gpk-update-viewer is missing the menu item will do nothing, but it did nothing before anyway! Hope that helps, -- MJR http://mjr.towers.org.uk/ Member of http://www.debian.org/ (but this email is my personal view only) >From e2319e4dd2cc94742e1a0a75e2d612af13e74d68 Mon Sep 17 00:00:00 2001 From: MJ Ray Date: Fri, 17 Apr 2020 12:17:10 +0100 Subject: [PATCH] * debian/patches/10_vendor_update_command.patch: add a reasonable default (Closes: #928814) * debian/tests/control: add test for update-command default being set in schema --- debian/patches/10_vendor_update_command.patch | 20 +++ debian/tests/control | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 debian/patches/10_vendor_update_command.patch create mode 100644 debian/tests/control diff --git a/debian/patches/10_vendor_update_command.patch b/debian/patches/10_vendor_update_command.patch new file mode 100644 index 000..1ad0d8d --- /dev/null +++ b/debian/patches/10_vendor_update_command.patch @@ -0,0 +1,20 @@ +diff --git a/10_vendor_update_command.gschema.override b/10_vendor_update_command.gschema.override +new file mode 100644 +index 000..00e3919 +--- /dev/null b/10_vendor_update_command.gschema.override +@@ -0,0 +1,2 @@ ++[org.guido-berhoerster.code.package-update-indicator] ++update-command='/usr/bin/gpk-update-viewer' +diff --git a/Makefile b/Makefile +index a83d779..105cf57 100644 +--- a/Makefile b/Makefile +@@ -269,7 +269,5 @@ dist: clobber + -s ',^\.$$,,' -s ',\./,$(DISTNAME)/,' . | \ + $(GZIP) > $(DISTNAME).tar.gz + +--include local.mk +- + -include $(patsubst %.o,%.d,$(OBJS)) + -include $(patsubst %.gresource.xml,%.gresource.d,$(GRESOURCE_FILES)) diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 000..77282f5 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +# Tests: update-command-defaults-to-gpk-update-viewer +Test-command: gsettings get org.guido-berhoerster.code.package-update-indicator update-command | grep "^'/usr/bin/gpk-update-viewer'$" -- 2.20.1
Bug#928814: package-update-indicator
Dear Maintainer, I have send you a debug.txt. That was all, what came up in 15 Minutes. Bernd
Bug#928814: package-update-indicator: Install updates greyed out, never shows update notification
Package: package-update-indicator Version: 2.0-1 Severity: normal Dear Maintainer, * What led up to the situation? I stopped receiving update notifications, after about a month I checked with apt and pkcon get-updates, the system had 145 updates. I am running XFCE 4.12 on testing, the green update icon is always present, but it looks like it is not doing anything. * What exactly did you do (or not do) that was effective (or ineffective)? I updated everything (and noticed the update icon never went away), then ran package-update-indicator --quit and restarted it, then downgraded a package, ran pkcon refresh, apt and packagekit show the update, the update icon is in the taskbar but it still had the "Install updates" option greyed out. Also, I started searching and found another bug report for this package and noticed that a "--debug" option exists, it is not in the manpage. This is what it shows: (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.531: property "update-command" set to "" (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.615: indicator icon: system-software-update, notification title: "", notification body: "" (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.620: backend: aptcc (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.620: roles: cancel;depends-on;get-details;get-files;get-packages;get-repo- list;required-by;get-update-detail;get-updates;install-files;install- packages;install-signature;refresh-cache;remove-packages;repo- enable;resolve;search-details;search-file;search-group;search-name;update- packages;what-provides;download-packages;get-old-transactions;repair- system;get-details-local;get-files-local;repo-remove (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.621: network-state: online (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.622: property "refresh-interval" set to 0 (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.622: property "use-mobile-connection" set to false (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.622: state initial -> up-to-date (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.622: indicator icon: system-software-update, notification title: "Up to Date", notification body: "The system is up to date." (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.633: setting HTTP proxy to "(null)" (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.633: setting HTTPS proxy to "(null)" (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.633: setting FTP proxy to "(null)" (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.633: setting SOCKS proxy to "(null)" (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.633: setting the list of download IPs which should not go through a proxy to "(null)" (package-update-indicator:2281): package-update-indicator-DEBUG: 17:24:01.633: setting the PAC string to "(null)" (package-update-indicator:2281): Gdk-CRITICAL **: 17:24:01.821: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed (package-update-indicator-prefs:2286): package-update-indicator-DEBUG: 17:24:06.768: mapping refresh-interval 0 to index 0 (package-update-indicator-prefs:2339): package-update-indicator-DEBUG: 17:25:21.445: mapping refresh-interval 0 to index 0 (package-update-indicator:2281): package-update-indicator-DEBUG: 17:27:26.929: number of updates changed (package-update-indicator:2281): package-update-indicator-DEBUG: 17:27:45.929: number of updates changed I do not know how to troubleshoot this... hence the bug report. Thanks, fmiz -- System Information: Debian Release: 10.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 4.19.0-4-686-pae (SMP w/2 CPU cores) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages package-update-indicator depends on: ii dconf-gsettings-backend [gsettings-backend 0.30.1-2 ii libappindicator3-1 0.4.92-7 ii libatk1.0-0 2.30.0-2 ii libc6 2.28-10 ii libcairo-gobject2 1.16.0-4 ii libcairo2 1.16.0-4 ii libdbusmenu-glib4 18.10.20180917~bzr490+repack1-1 ii libgdk-pixbuf2.0-0 2.38.1+dfsg-1 ii libglib2.0-02.58.3-1 ii libgtk-3-0 3.24.5-1 ii libpackagekit-glib2-18 1.1.12-5 ii libpango-1.0-0