-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed breaks not being called and two other problems #564
base: master
Are you sure you want to change the base?
Conversation
Fixed SafeEyes breaks not being called (crashing) when Chromium snap refuses dbus access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There you go. |
@@ -194,7 +194,8 @@ def __start_idle_monitor(): | |||
smart_pause_activated = True | |||
idle_start_time = datetime.datetime.now() - datetime.timedelta(seconds=system_idle_time) | |||
logging.info('Pause Safe Eyes due to system idle') | |||
disable_safeeyes(None, True) | |||
info = _('Paused Safe Eyes due to system being idle') | |||
disable_safeeyes(info, True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this still doesn't work for me - now it fails with
TypeError: SafeEyes.__init__.<locals>.<lambda>() takes 1 positional argument but 2 were given
I guess the is_resting
parameter has to be passed along in the lambda in safeeyes/safeeyes.py:74
as well:
Lines 74 to 75 in 6ac8b60
self.context['api']['disable_safeeyes'] = lambda status: utility.execute_main_thread( | |
self.disable_safeeyes, status) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, looks like it.
@adventuretc Any updates? |
Are these changes still relevant? The current version of safeeyes is not anymore compatible with Ubuntu 20.04, so fix is not anymore relevant. Also, does safeeyes still not work with Chromium snap? |
Hi,
The title and the commit messages should say it all.
Kindly, merge the changes.