mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #1366 from pypeclub/feature/idle_manager_on_mac
Temporary fix of Idle manager on MacOs
This commit is contained in:
commit
646d839fc8
1 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import platform
|
||||
import collections
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
|
|
@ -40,7 +41,12 @@ class IdleManager(PypeModule, ITrayService):
|
|||
name = "idle_manager"
|
||||
|
||||
def initialize(self, module_settings):
|
||||
self.enabled = True
|
||||
enabled = True
|
||||
# Ignore on MacOs
|
||||
# - pynput need root permissions and enabled access for application
|
||||
if platform.system().lower() == "darwin":
|
||||
enabled = False
|
||||
self.enabled = enabled
|
||||
|
||||
self.time_callbacks = collections.defaultdict(list)
|
||||
self.idle_thread = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue