diff --git a/src/fenrir-package/core/inputManager.py b/src/fenrir-package/core/inputManager.py index b4453cba..e1e4d0eb 100644 --- a/src/fenrir-package/core/inputManager.py +++ b/src/fenrir-package/core/inputManager.py @@ -45,7 +45,6 @@ class inputManager(): except Exception as e: environment['runtime']['debug'].writeDebugOut(environment,"Error while writeUInput",debug.debugLevel.ERROR) environment['runtime']['debug'].writeDebugOut(environment, str(e),debug.debugLevel.ERROR) - return environment def getPrevDeepestInput(self, environment): shortcut = [] diff --git a/src/fenrir-package/core/screenManager.py b/src/fenrir-package/core/screenManager.py index 833b1a98..d96dd937 100644 --- a/src/fenrir-package/core/screenManager.py +++ b/src/fenrir-package/core/screenManager.py @@ -11,22 +11,18 @@ class screenManager(): environment['runtime']['settingsManager'].getSetting(environment,'screen', 'driver'), 'screenDriver') if environment['runtime']['settingsManager'].getSettingAsBool(environment,'screen', 'autodetectSuspendingScreen'): self.autoIgnoreScreens = environment['runtime']['screenDriver'].getIgnoreScreens() - return environment def shutdown(self, environment): if environment['runtime']['screenDriver']: environment['runtime']['screenDriver'].shutdown(environment) - return environment def update(self, environment): if not self.isSuspendingScreen(environment): environment = environment['runtime']['screenDriver'].update(environment) environment['screenData']['lastScreenUpdate'] = time.time() - return environment def isSuspendingScreen(self, environment): currScreen = environment['runtime']['screenDriver'].getCurrScreen() return ((currScreen in \ environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')) or (currScreen in self.autoIgnoreScreens)) - diff --git a/src/fenrir-package/core/settingsManager.py b/src/fenrir-package/core/settingsManager.py index 3bd052fd..c36c24fa 100644 --- a/src/fenrir-package/core/settingsManager.py +++ b/src/fenrir-package/core/settingsManager.py @@ -15,9 +15,9 @@ class settingsManager(): def __init__(self): self.settings = settings def initialize(self, environment): - return environment + pass def shutdown(self, environment): - return environment + pass def loadShortcuts(self, environment, kbConfigPath='../../config/keyboard/desktop.conf'): kbConfig = open(kbConfigPath,"r") while(True): @@ -74,7 +74,6 @@ class settingsManager(): soundIconFile = soundIconPath + Values[1] environment['soundIcons'][soundIcon] = soundIconFile siConfig.close() - return environment def loadSettings(self, environment, settingConfigPath): if not os.path.exists(settingConfigPath): @@ -85,7 +84,6 @@ class settingsManager(): def setSetting(self, environment, section, setting, value): environment['settings'].set(section, setting, value) - return environment def getSetting(self, environment, section, setting): value = '' diff --git a/src/fenrir-package/inputDriver/evdev.py b/src/fenrir-package/inputDriver/evdev.py index f9204ced..16543bd9 100644 --- a/src/fenrir-package/inputDriver/evdev.py +++ b/src/fenrir-package/inputDriver/evdev.py @@ -12,9 +12,9 @@ class driver(): self.uDevices = {} self.getInputDevices() def initialize(self, environment): - return environment + pass def shutdown(self, environment): - return environment + pass def getInput(self, environment): event = None r, w, x = select(self.iDevices, [], [], environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'screen', 'screenUpdateDelay'))