From f68b3291b38b79fb64dd01f587c572837d689c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9sir=C3=A9=20Werner=20Menrath?= Date: Mon, 11 Aug 2025 00:42:06 +0200 Subject: [PATCH] write Changelog and fix imports all --- Changelog | 19 ++++++++++++++++++- logger.py | 1 + ssl_encrypt.py | 5 ++--- start_wg.py | 3 ++- wirepy.py | 11 ----------- wp_app_config.py | 2 +- 6 files changed, 24 insertions(+), 17 deletions(-) diff --git a/Changelog b/Changelog index c515d94..4d9f875 100644 --- a/Changelog +++ b/Changelog @@ -6,10 +6,27 @@ My standard System: Linux Mint 22 Cinnamon - os import in common_tools.py replaced by other methods - If Wire-Py already runs, prevent further start - for loops with lists replaced by List Comprehensions - - Replace Download Button with Lx Tools installer + + ### Added +10.08.2025 + + - Wirepy divided into several scripts for better overview and maintenance + + - Own file dialogue is now used to open Wireguard files for the import. + + - New update notification. A canvas ring flashes when updates are available + + - UI size change now grow all widgets with. + + - Update Search at start of the app now starts in a thread to not stop the GUI + + - Logviewer replaces with new button in the menu bar, + a new window opens in which the necessary infos stand when errors occur. + ### Added 01.08.2025 + - Replace Imagemanager with IconManager and remove ImageManager from wp_app_config.py - Logging improved diff --git a/logger.py b/logger.py index 9ace1fc..440e950 100644 --- a/logger.py +++ b/logger.py @@ -8,5 +8,6 @@ class Logger: def log(self, message): self._log_func(message) + # Global instance app_logger = Logger() diff --git a/ssl_encrypt.py b/ssl_encrypt.py index 23393b0..08a3cad 100755 --- a/ssl_encrypt.py +++ b/ssl_encrypt.py @@ -2,7 +2,6 @@ """ This Script encrypt Wireguardfiles for Wirepy users for more Security """ import argparse - from pathlib import Path import pwd import shutil @@ -22,7 +21,7 @@ try: uid = user_info.pw_uid # User ID (e.g., 1000) gid = user_info.pw_gid # Group ID (e.g., 1000) except KeyError: - + exit(1) keyfile: Path = Path(f"/home/{args.user}/.config/wire_py/pbwgk.pem") @@ -80,4 +79,4 @@ if AppConfig.TEMP_DIR.exists() and any(AppConfig.TEMP_DIR.iterdir()): # Output from Openssl Error if process.stderr: - pass \ No newline at end of file + pass diff --git a/start_wg.py b/start_wg.py index 56e73df..40498a7 100755 --- a/start_wg.py +++ b/start_wg.py @@ -6,6 +6,7 @@ from subprocess import CompletedProcess, run from shared_libs.wp_app_config import AppConfig from shared_libs.common_tools import ConfigManager +from shared_libs.message import MessageDialog ConfigManager.init(AppConfig.SETTINGS_FILE) @@ -18,7 +19,7 @@ if ConfigManager.get("autostart") != "off": ) # Output from start_wg error if process.stderr: - + MessageDialog("error", process.stderr).show() else: pass diff --git a/wirepy.py b/wirepy.py index 48cd9e2..f73f064 100755 --- a/wirepy.py +++ b/wirepy.py @@ -5,7 +5,6 @@ this script is a simple GUI for managing Wireguard Tunnels import getpass import sys import tkinter as tk -from tkinter import TclError from shared_libs.common_tools import ( LxTools, @@ -89,16 +88,6 @@ if __name__ == "__main__": LxTools.sigi(AppConfig.TEMP_DIR) CryptoUtil.decrypt(getpass.getuser()) window = Wirepy() - - """ - the hidden files are hidden in Filedialog - """ - try: - window.tk.call("tk_getOpenFile", "-foobarbaz") - except TclError: - pass - window.tk.call("set", "::tk::dialog::file::showHiddenBtn", "0") - window.tk.call("set", "::tk::dialog::file::showHiddenVar", "0") window.mainloop() LxTools.clean_files(AppConfig.TEMP_DIR) diff --git a/wp_app_config.py b/wp_app_config.py index d838e21..81e7930 100755 --- a/wp_app_config.py +++ b/wp_app_config.py @@ -47,7 +47,7 @@ class AppConfig: # Updates # 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year - VERSION: str = "v. 2.07.0225" + VERSION: str = "v. 2.08.1025" UPDATE_URL: str = "https://git.ilunix.de/api/v1/repos/punix/Wire-Py/releases" DOWNLOAD_URL: str = "https://git.ilunix.de/punix/Wire-Py/archive"