From 4ad3da487339b43021858d94142ada8bc1e90528 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 20 Aug 2005 18:34:24 +0000 Subject: [PATCH] Ensure icon in /tmp is removed on exit. git-svn-id: https://zero-install.svn.sourceforge.net/svnroot/zero-install/addapp@469 9f8c893c-44ee-0310-b757-c8ca8341c71e --- AddApp/AppRun | 1 + AddApp/launcher.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/AddApp/AppRun b/AddApp/AppRun index f4d248d..9a607dd 100755 --- a/AddApp/AppRun +++ b/AddApp/AppRun @@ -65,5 +65,6 @@ try: image.set_from_pixbuf(icon_pixbuf) box.set_type('inode/directory', image) rox.mainloop() + launcher.delete_icon() except: rox.report_exception() diff --git a/AddApp/launcher.py b/AddApp/launcher.py index 42efaf9..e0a7053 100644 --- a/AddApp/launcher.py +++ b/AddApp/launcher.py @@ -112,3 +112,7 @@ fi""" % (self.uri, addapp_uri, self.uri, self.uri)) tmp.flush() self.icon = tmp + + def delete_icon(self): + """Remove the temporary icon file, if any""" + self.icon = None -- 2.11.4.GIT