From 2cb262ca6dc16fa0901b23a2e4e2c01850e63fbe Mon Sep 17 00:00:00 2001 From: EnricoGuccii Date: Tue, 2 Jun 2026 00:06:39 +0200 Subject: small fixes --- src/streamml/app.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/streamml/app.py') diff --git a/src/streamml/app.py b/src/streamml/app.py index 4c7d1aa..0256315 100644 --- a/src/streamml/app.py +++ b/src/streamml/app.py @@ -2,9 +2,6 @@ from textual.app import App, ComposeResult from textual.widgets import TabbedContent, TabPane from textual.theme import Theme -from pathlib import Path -import os - from .front.detector_tab import DetectorTab from .front.detector_profiles_tab import DetectorProfilesTab from .front.options_tab import OptionsTab @@ -12,8 +9,6 @@ from .front.options_tab import OptionsTab from .back.detector_profiles_manager import DetectorProfilesManager -XDG_DATA_HOME = Path(os.environ.get("XDG_DATA_HOME", Path.home() / ".local/share")) - theme = Theme( name="pastel_blue_theme", primary="#82A6F2", @@ -31,7 +26,7 @@ class Streamml(App): def __init__(self): super().__init__() - self.detector_profiles_manager = DetectorProfilesManager(profiles_file=f"{XDG_DATA_HOME}/netmonitor/objects/detector_profiles_objects") + self.detector_profiles_manager = DetectorProfilesManager(profiles_file=f"/var/log/streamml/objects/detector_profiles_objects") def compose(self) -> ComposeResult: with TabbedContent(): -- cgit v1.2.3