From ad4cdf4317d1f5f698d907cabfba6d1701725fa4 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Wed, 23 Oct 2024 13:42:38 +0300 Subject: [PATCH] minor fixes for desktop func --- data_from_portwine/scripts/functions_helper | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index b1d4700c..507582b6 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -5529,7 +5529,8 @@ portwine_create_shortcut () { [[ -z "${PW_SHORTCUT_DESKTOP}" ]] && PW_SHORTCUT_DESKTOP="TRUE" [[ -z "${PW_SHORTCUT_STEAM}" ]] && PW_SHORTCUT_STEAM="FALSE" - [[ -z $PW_SHORTCUT_PROXY ]] && create_pw_comment && export name_desktop="$PW_SHORTCUT_PROXY" + [[ -z $PW_SHORTCUT_PROXY ]] && create_pw_comment + export name_desktop="$PW_SHORTCUT_PROXY" [[ -z "${name_desktop_png}" ]] && name_desktop_png="${PORTPROTON_NAME// /_}" @@ -5577,7 +5578,7 @@ portwine_create_shortcut () { edit_user_conf_from_gui PW_SHORTCUT_MENU PW_SHORTCUT_DESKTOP PW_SHORTCUT_STEAM - if [[ -n ${DESKTOP_FILES_ARRAY[0]} ]] && [[ $name_desktop != $DESKTOP_NAME_FILE ]] || [[ -n ${DESKTOP_FILES_ARRAY[1]} ]] ; then + if [[ -n ${DESKTOP_FILES_ARRAY[0]} && $name_desktop != $DESKTOP_NAME_FILE ]] || [[ -n ${DESKTOP_FILES_ARRAY[1]} ]] ; then if yad_question "${translations[A higher number of duplicate desktop files were found for this file.\\nShould I delete the extra ones or not?]}" ; then for rm in "${DESKTOP_FILES_ARRAY[@]}" ; do rm -f "$rm"