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 +------ src/streamml/front/options_tab.py | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'src/streamml') 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(): diff --git a/src/streamml/front/options_tab.py b/src/streamml/front/options_tab.py index 22bd43a..9e67fcf 100644 --- a/src/streamml/front/options_tab.py +++ b/src/streamml/front/options_tab.py @@ -35,7 +35,7 @@ class OptionsTab(Container): @on(Button.Pressed, "#test-notif") def test_notification(self): - success = notification_service.send_message("**Test NetMonitor**\n") + success = notification_service.send_message("**Test streamml**\n") if success: self.app.notify("good", severity="information") -- cgit v1.2.3