all msg_window with MassageDialog replaced

This commit is contained in:
2025-06-24 15:02:19 +02:00
parent 54b62fd5d5
commit 70d973e9d7
2 changed files with 9 additions and 9 deletions

View File

@ -6,7 +6,6 @@ import pwd
import shutil import shutil
from subprocess import CompletedProcess, run from subprocess import CompletedProcess, run
from shared_libs.wp_app_config import AppConfig from shared_libs.wp_app_config import AppConfig
from shared_libs.common_tools import LxTools
from shared_libs.message import MessageDialog from shared_libs.message import MessageDialog
@ -21,8 +20,9 @@ try:
uid = user_info.pw_uid # User ID (e.g., 1000) uid = user_info.pw_uid # User ID (e.g., 1000)
gid = user_info.pw_gid # Group ID (e.g., 1000) gid = user_info.pw_gid # Group ID (e.g., 1000)
except KeyError: except KeyError:
MessageDialog("error", _(f"User '{args.user}' not found."), title="Error decrypt") MessageDialog(
"error", _(f"User '{args.user}' not found."), title="Error decrypt"
).show()
exit(1) exit(1)
crypted_tunnel: Path = Path(f"/home/{args.user}/.config/wire_py") crypted_tunnel: Path = Path(f"/home/{args.user}/.config/wire_py")
@ -30,9 +30,9 @@ crypted_tunnel: Path = Path(f"/home/{args.user}/.config/wire_py")
if len([str(file) for file in crypted_tunnel.glob("*.dat")]) == 0: if len([str(file) for file in crypted_tunnel.glob("*.dat")]) == 0:
pass pass
else: else:
crypted__tunnel = [str(file) for file in crypted_tunnel.glob("*.dat")] crypted_tunnel = [str(file) for file in crypted_tunnel.glob("*.dat")]
for tunnel_path in crypted__tunnel: for tunnel_path in crypted_tunnel:
base_name = Path(tunnel_path).stem base_name = Path(tunnel_path).stem
@ -50,16 +50,16 @@ else:
], ],
capture_output=True, capture_output=True,
text=True, text=True,
check=False, check=True,
) )
shutil.chown(f"{AppConfig.TEMP_DIR}/{base_name}.conf", uid, gid) shutil.chown(f"{AppConfig.TEMP_DIR}/{base_name}.conf", uid, gid)
# Output from Openssl Error # Output from Openssl Error
if process.stderr: if process.stderr:
MessageDialog( MessageDialog(
"erro", "error",
_( _(
f"{process.stderr} Error by [{tunnel_path}] Code: {process.returncode}" f"{process.stderr} Error by [{tunnel_path}] Code: {process.returncode}"
), ),
title="Error decrypt", title="Error decrypt",
) ).show()

View File

@ -57,7 +57,7 @@ class AppConfig:
# Updates # Updates
# 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year # 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year
VERSION: str = "v. 2.06.0725" VERSION: str = "v. 2.06.2425"
UPDATE_URL: str = "https://git.ilunix.de/api/v1/repos/punix/Wire-Py/releases" 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" DOWNLOAD_URL: str = "https://git.ilunix.de/punix/Wire-Py/archive"