write Changelog and fix imports all

This commit is contained in:
2025-08-11 00:42:06 +02:00
parent f5768d2118
commit f68b3291b3
6 changed files with 24 additions and 17 deletions

View File

@@ -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

View File

@@ -8,5 +8,6 @@ class Logger:
def log(self, message):
self._log_func(message)
# Global instance
app_logger = Logger()

View File

@@ -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
pass

View File

@@ -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

View File

@@ -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)

View File

@@ -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"