all msg_window with MassageDialog replaced
This commit is contained in:
@ -6,7 +6,6 @@ import pwd
|
||||
import shutil
|
||||
from subprocess import CompletedProcess, run
|
||||
from shared_libs.wp_app_config import AppConfig
|
||||
from shared_libs.common_tools import LxTools
|
||||
from shared_libs.message import MessageDialog
|
||||
|
||||
|
||||
@ -21,8 +20,9 @@ try:
|
||||
uid = user_info.pw_uid # User ID (e.g., 1000)
|
||||
gid = user_info.pw_gid # Group ID (e.g., 1000)
|
||||
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)
|
||||
|
||||
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:
|
||||
pass
|
||||
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
|
||||
|
||||
@ -50,16 +50,16 @@ else:
|
||||
],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
check=True,
|
||||
)
|
||||
shutil.chown(f"{AppConfig.TEMP_DIR}/{base_name}.conf", uid, gid)
|
||||
|
||||
# Output from Openssl Error
|
||||
if process.stderr:
|
||||
MessageDialog(
|
||||
"erro",
|
||||
"error",
|
||||
_(
|
||||
f"{process.stderr} Error by [{tunnel_path}] Code: {process.returncode}"
|
||||
),
|
||||
title="Error decrypt",
|
||||
)
|
||||
).show()
|
||||
|
@ -57,7 +57,7 @@ class AppConfig:
|
||||
|
||||
# Updates
|
||||
# 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"
|
||||
DOWNLOAD_URL: str = "https://git.ilunix.de/punix/Wire-Py/archive"
|
||||
|
||||
|
Reference in New Issue
Block a user