Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
framework/browser: Check return value of Gdk.Screen().get_default()
Gdk.Screen().get_default() can return None. Exit in case this happens and print a more descriptive error message. Fixes: Traceback (most recent call last): File "/usr/bin/sealert", line 659, in <module> run_as_dbus_service(username) File "/usr/bin/sealert", line 118, in run_as_dbus_service app = SEAlert(user, dbus_service.presentation_manager, watch_setroubleshootd=True) File "/usr/bin/sealert", line 351, in __init__ self.browser = BrowserApplet(self.username, self.alert_client, domain=domain) File "/usr/lib/python3.6/site-packages/setroubleshoot/browser.py", line 182, in __init__ size = Gdk.Screen().get_default().get_monitor_geometry(0) AttributeError: 'NoneType' object has no attribute 'get_monitor_geometry'
- Loading branch information