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