From 01f19cd94d38c3bbee57711b4cde471a04097a06 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Mon, 29 Sep 2025 14:23:31 +0300 Subject: [PATCH] first print_license_agreement before run_autoinstall --- winehelper | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/winehelper b/winehelper index 18e385b..b137d54 100755 --- a/winehelper +++ b/winehelper @@ -1416,6 +1416,12 @@ wine_run_install () { } run_autoinstall () { + if [[ $WH_USE_GUI == "1" ]] \ + && [[ $(ps -o command= -p "$PPID" | awk '{print $2}') =~ "$DATA_PATH/winehelper_gui.py" ]] + then print_ok "Соглашения приняты из графического интерфейса." + else print_license_agreement + fi + if [[ $1 == "--clear-pfx" ]] ; then export CLEAR_PREFIX="1" shift