From 3299c82e1cb74f721c4497964e9dc5d8fba384f1 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 23 Mar 2010 17:16:18 +0000 Subject: [PATCH] - Explicitly destroy tray icon on exit (bug #543286). --- hplip-tray-icon-crash.patch | 11 +++++++++++ hplip.spec | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 hplip-tray-icon-crash.patch diff --git a/hplip-tray-icon-crash.patch b/hplip-tray-icon-crash.patch new file mode 100644 index 0000000..a603cd3 --- /dev/null +++ b/hplip-tray-icon-crash.patch @@ -0,0 +1,11 @@ +diff -up hplip-3.10.2/ui4/systemtray.py.tray-icon-crash hplip-3.10.2/ui4/systemtray.py +--- hplip-3.10.2/ui4/systemtray.py.tray-icon-crash 2010-02-24 23:07:15.000000000 +0000 ++++ hplip-3.10.2/ui4/systemtray.py 2010-03-23 16:42:24.476504861 +0000 +@@ -489,6 +489,7 @@ class SystemTrayApp(QApplication): + log.debug("Exiting") + self.sendMessage('', '', EVENT_SYSTEMTRAY_EXIT) + self.quit() ++ del self.tray_icon + + + def toolboxTriggered(self): diff --git a/hplip.spec b/hplip.spec index f878ac4..f78a231 100644 --- a/hplip.spec +++ b/hplip.spec @@ -1,7 +1,7 @@ Summary: HP Linux Imaging and Printing Project Name: hplip Version: 3.10.2 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ and MIT Group: System Environment/Daemons Conflicts: system-config-printer < 0.6.132 @@ -21,6 +21,7 @@ Patch5: hplip-device-ids.patch Patch6: hplip-mucks-with-spooldir.patch Patch7: hplip-udev-rules.patch Patch8: hplip-retry-open.patch +Patch9: hplip-tray-icon-crash.patch Patch10: hplip-discovery-method.patch Patch11: hplip-device-reconnected.patch Patch14: hplip-hpcups-sigpipe.patch @@ -142,6 +143,9 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} # Retry when connecting to device fails (bug #532112). %patch8 -p1 -b .retry-open +# Explicitly destroy tray icon on exit (bug #543286). +%patch9 -p1 -b .tray-icon-crash + # Fixed hp-setup traceback when discovery page is skipped (bug #523685). %patch10 -p1 -b .discovery-method @@ -368,6 +372,9 @@ fi /usr/bin/update-desktop-database &>/dev/null ||: %changelog +* Tue Mar 23 2010 Tim Waugh - 3.10.2-5 +- Explicitly destroy tray icon on exit (bug #543286). + * Thu Mar 4 2010 Tim Waugh - 3.10.2-4 - Main package doesn't require hal. - Sub-package common requires udev.