From 13c61cb1a64c57b49f68d4ff0cd3cdb8cd8ca5f2 Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 11 Apr 2018 23:57:28 +0200 Subject: [PATCH] systemd --- autostart/systemd/fenrir.service | 5 ++++- src/fenrir-daemon | 4 ++-- src/fenrirscreenreader/core/settingsManager.py | 5 +++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/autostart/systemd/fenrir.service b/autostart/systemd/fenrir.service index 439a770d..eeeebd07 100644 --- a/autostart/systemd/fenrir.service +++ b/autostart/systemd/fenrir.service @@ -12,4 +12,7 @@ Restart=always #User=fenrirscreenreader [Install] -WantedBy=sound.target +# start as early as possible in boot process +#WantedBy=sound.target +# start as soon the login prompt is available +WantedBy=getty.target diff --git a/src/fenrir-daemon b/src/fenrir-daemon index 80a618a5..e813875c 100755 --- a/src/fenrir-daemon +++ b/src/fenrir-daemon @@ -22,7 +22,7 @@ def main(): if __name__ == "__main__": # for debug in foreground - #daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, foreground=True,chdir=os.path.dirname(os.path.realpath(fenrirVersion.__file__))) - daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, chdir=fenrirPath) + daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, foreground=True,chdir=fenrirPath) + #daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, chdir=fenrirPath) daemon.start() diff --git a/src/fenrirscreenreader/core/settingsManager.py b/src/fenrirscreenreader/core/settingsManager.py index abc2f4ef..16691f9a 100644 --- a/src/fenrirscreenreader/core/settingsManager.py +++ b/src/fenrirscreenreader/core/settingsManager.py @@ -279,6 +279,9 @@ class settingsManager(): environment['runtime']['commandManager'] = commandManager.commandManager() environment['runtime']['commandManager'].initialize(environment) + environment['runtime']['helpManager'] = helpManager.helpManager() + environment['runtime']['helpManager'].initialize(environment) + environment['runtime']['byteManager'] = byteManager.byteManager() environment['runtime']['byteManager'].initialize(environment) @@ -310,8 +313,6 @@ class settingsManager(): environment['runtime']['cursorManager'].initialize(environment) environment['runtime']['applicationManager'] = applicationManager.applicationManager() environment['runtime']['applicationManager'].initialize(environment) - environment['runtime']['helpManager'] = helpManager.helpManager() - environment['runtime']['helpManager'].initialize(environment) environment['runtime']['headLineManager'] = headLineManager.headLineManager() environment['runtime']['headLineManager'].initialize(environment) environment['runtime']['tableManager'] = tableManager.tableManager()