| 81 |
81 |
| 82 if args.notray or platform.system()!='Darwin': |
82 if args.notray or platform.system()!='Darwin': |
| 83 # Wait for scheduler to finish |
83 # Wait for scheduler to finish |
| 84 scheduler.join() |
84 scheduler.join() |
| 85 else: |
85 else: |
| |
86 # This is needed for Ctrl+C to work. |
| |
87 # TODO: proper exit handler, which seems to require |
| |
88 # ditching/forking/extending rumps to extend the NSApp class |
| |
89 from PyObjCTools.AppHelper import installMachInterrupt |
| |
90 installMachInterrupt() |
| 86 # Start UI, and let it handle exit control |
91 # Start UI, and let it handle exit control |
| 87 from borgend.ui import BorgendTray |
92 from borgend.ui import BorgendTray |
| 88 tray=BorgendTray(backups); |
93 tray=BorgendTray(backups); |
| 89 tray.run() |
94 tray.run() |
| 90 |
95 |