summaryrefslogtreecommitdiff
path: root/src/streamml
diff options
context:
space:
mode:
authorEnricoGuccii <partyka.003@proton.me>2026-06-02 00:06:39 +0200
committerEnricoGuccii <partyka.003@proton.me>2026-06-02 00:06:39 +0200
commit2cb262ca6dc16fa0901b23a2e4e2c01850e63fbe (patch)
tree6df9f24d6f8b3eb705ae68e98fb6d4cb8d529d6e /src/streamml
parent4289f0db454c21f6a071170f7f1b765eac5ac792 (diff)
small fixesmain
Diffstat (limited to 'src/streamml')
-rw-r--r--src/streamml/app.py7
-rw-r--r--src/streamml/front/options_tab.py2
2 files changed, 2 insertions, 7 deletions
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")