6 Commits

4 changed files with 8 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ class GiteaUpdate:
"""
try:
to_down: str = f"wget -qP {Path.home()} {" "} {urld}"
to_down: str = f"wget -qP {Path.home()} {' '} {urld}"
result: int = subprocess.call(to_down, shell=True)
if result == 0:
shutil.chown(f"{Path.home()}/{res}.zip", 1000, 1000)

Binary file not shown.

View File

@@ -58,12 +58,17 @@ class AppConfig:
# UI configuration
UI_CONFIG: Dict[str, Any] = {
"window_title2": "LogViewer",
"window_size": (595, 460),
"window_size": (590, 460),
"font_family": "Ubuntu",
"font_size": 11,
"resizable_window": (True, True),
}
# Images and icons paths
IMAGE_PATHS: Dict[str, Path] = {
"icon_log": "/usr/share/icons/lx-icons/48/log.png",
}
# System-dependent paths
SYSTEM_PATHS: Dict[str, Path] = {
"tcl_path": "/usr/share/TK-Themes",

View File

@@ -466,7 +466,7 @@ class LogViewer(tk.Tk):
def directory_load(self, modul_name, _):
filepath = filedialog.askopenfilename(
initialdir=f"{Path.home() / ".local/share/lxlogs/"}",
initialdir=f"{Path.home() / '.local/share/lxlogs/'}",
title="Select a Logfile File",
filetypes=[("Logfiles", "*.log")],
)