make xdg dirs more correct!

This commit is contained in:
2026-02-26 18:25:13 +01:00
parent acc19d9539
commit 86d792e24d
6 changed files with 24 additions and 28 deletions

View File

@@ -3,6 +3,7 @@ import os
import keyring
from keyring.errors import KeyringError
from datetime import datetime
from appdirs import user_config_dir
from textual.app import App, ComposeResult
from textual.containers import Container
from textual.widgets import Header, Footer, DataTable, Label, Button, Input
@@ -10,9 +11,8 @@ from textual.screen import Screen
from textual.binding import Binding
from .zut_client import ZUT
from .config import get_config_path
APP_DIR = get_config_path()
APP_DIR = user_config_dir("zutui", "shv187")
CONFIG_FILE = os.path.join(APP_DIR, "config.json")
REFRESH_INTERVAL = 1800