Scripts version 2315
This commit is contained in:
@ -1278,9 +1278,10 @@ pw_init_db () {
|
||||
fi
|
||||
|
||||
IFS="$orig_IFS"
|
||||
# shellcheck source=/dev/null
|
||||
source "${PORTWINE_DB_FILE}"
|
||||
if [[ -f "${PW_FIND_DB_FILE}" ]] \
|
||||
&& [[ "${PW_DISABLED_CREATE_DB}" != 1 ]] \
|
||||
&& grep "^export PW_DISABLED_CREATE_DB=1" "${PW_FIND_DB_FILE}" &>/dev/null
|
||||
then
|
||||
try_copy_file "${PW_FIND_DB_FILE}" "${portwine_exe}".ppdb
|
||||
PORTWINE_DB_FILE="${portwine_exe}".ppdb
|
||||
@ -1469,7 +1470,7 @@ update_winetricks () {
|
||||
}
|
||||
|
||||
edit_db_from_gui () {
|
||||
if [[ "${PW_DISABLED_CREATE_DB}" == 1 ]] ; then
|
||||
if [[ "${PW_DISABLED_CREATE_DB}" == "1" ]] ; then
|
||||
print_warning "Skipped edit_db_from_gui"
|
||||
return 0
|
||||
fi
|
||||
@ -4411,11 +4412,9 @@ portwine_create_shortcut () {
|
||||
export GDK_BACKEND="x11"
|
||||
pw_stop_progress_bar
|
||||
[[ ! -e ${portwine_exe} ]] && return 1
|
||||
unset PORTPROTON_NAME
|
||||
pw_create_gui_png
|
||||
|
||||
print_error "portwine_exe: $portwine_exe"
|
||||
print_error "PORTPROTON_NAME: ${PORTPROTON_NAME}"
|
||||
|
||||
if [[ "$1" == "block_name" ]] ; then
|
||||
export name_desktop="${PORTPROTON_NAME}"
|
||||
OUTPUT=$("${pw_yad}" --title="$(gettext "Choices")" --form \
|
||||
|
Reference in New Issue
Block a user