From 3f8cd88ec0f5ca1a8aa8e096d2078c01a8b147f9 Mon Sep 17 00:00:00 2001 From: Bruce A Downs Date: Mon, 15 Oct 2012 20:28:57 -0600 Subject: [PATCH] qubes-manager: Added call to lock.remove_pidfile() on successful exit * Adding remove_pidfile on exit * prevents the incorrect 'crash' message on startup * Added proper call to main --- qubesmanager/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index cf695ba..ab79fad 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -2030,8 +2030,6 @@ def sighup_handler(signum, frame): os.execl("/usr/bin/qubes-manager") def main(): - - # Avoid starting more than one instance of the app lock = QubesDaemonPidfile ("qubes-manager") if lock.pidfile_exists(): @@ -2084,4 +2082,9 @@ def main(): show_manager() app.exec_() + + lock.remove_pidfile() trayIcon = None + +if __name__ == "__main__": + main()