Fixed a bug in the remote manager.

This commit is contained in:
Storm Dragon
2025-07-05 09:15:40 -04:00
parent bab7c1a552
commit c90c726899
4 changed files with 19 additions and 10 deletions

View File

@ -95,8 +95,17 @@ def validate_arguments(cliArgs):
def run_fenrir():
"""Main function that runs Fenrir"""
fenrirApp = fenrirManager.FenrirManager(cliArgs)
try:
fenrirApp.proceed()
finally:
del fenrirApp
# Clean up PID file if it exists
pidFile = "/run/fenrir.pid"
if os.path.exists(pidFile):
try:
os.remove(pidFile)
except Exception:
pass
def main():
global cliArgs

View File

@ -59,7 +59,7 @@ class command():
str(stdout), sound_icon='', interrupt=False)
except Exception as e:
self.env['runtime']['OutputManager'].present_text(
e, sound_icon ='', interrupt=False)
str(e), sound_icon='', interrupt=False)
def set_callback(self, callback):
pass

View File

@ -128,7 +128,7 @@ class FenrirManager():
def handle_remote_incomming(self, event):
if not event['data']:
return
self.environment['runtime']['remoteManager'].handle_remote_incomming(
self.environment['runtime']['RemoteManager'].handle_remote_incomming(
event['data'])
def handle_screen_change(self, event):

View File

@ -4,6 +4,6 @@
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
version = "2025.07.03"
version = "2025.07.05"
codeName = "testing"
code_name = "testing"