Skip to content

Commit

Permalink
v0.78.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Mar 17, 2024
1 parent a9ae4de commit cbee49c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.78.3.4

* Add a submenu for application settings to [lw-tray](https://github.com/VHSgunzo/lw-tray/releases/tag/v0.0.6) `v0.0.6`
* HotFix `-appcfg` EXEs backslash args

# v0.78.3.3

* Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
Expand Down
2 changes: 1 addition & 1 deletion lutris-wine
Original file line number Diff line number Diff line change
@@ -1 +1 @@
LW_VERSION="0.78.3.3"
LW_VERSION="0.78.3.4"
17 changes: 9 additions & 8 deletions lux-wine
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

export LW_VERSION="0.78.3.3"
export LW_VERSION="0.78.3.4"
export LW_DEVELOPERS="VHSgunzo"

export RED='\033[1;91m'
Expand Down Expand Up @@ -2970,11 +2970,12 @@ lu_config() {
1> /tmp/winesett$LWCFGKEY &

local SETT_EXE_ARGS=()
sedbackslash() { sed 's|\\|\\\\\\\\\\\\|g'<<<"$arg" ; }
for arg in "${EXE_ARGS[@]}"
do
[[ "$arg" == *' '* ]] && \
SETT_EXE_ARGS+=("\"$(sed 's|\\|\\\\\\\\\\\\|g'<<<"$arg")\"")||\
SETT_EXE_ARGS+=("$(sed 's|\\|\\\\\\\\\\\\|g'<<<"$arg")")
SETT_EXE_ARGS+=("\"$(sedbackslash)\"")||\
SETT_EXE_ARGS+=("$(sedbackslash)")
done
yad --plug=$LWCFGKEY --tabnum=2 --form --separator="\n" --quoted-output --bool-fmt=1 --columns=2 "${YADSCROLL[@]}" \
--field="EXE arguments::CBE" "$(echo "${SETT_EXE_ARGS[@]}"|eval $AWKFIX)" \
Expand Down Expand Up @@ -3225,7 +3226,7 @@ lu_config() {

pfxrestore) btntls_run -pfxrestore ;;

appcfg) lu_appcfg || btntls_run ;;
appcfg) LU_EXE= lu_appcfg ;;
esac
fi
}
Expand Down Expand Up @@ -6000,7 +6001,7 @@ exe_args_add() {
}

exeargs_parse() {
sed_arg_quotes() { sed "s|^\"||;s|\"$||;s|^'||;s|'$||" ; }
sedarg() { sed "s|^\"||;s|\"$||;s|^'||;s|'$||"|sed 's|\\\\|\\|g' ; }
local char
local result=''
local inside=''
Expand All @@ -6025,14 +6026,14 @@ exeargs_parse() {
elif [[ "$char" == ' ' ]]
then
char=''
exe_args_add "$(sed_arg_quotes<<<"$result")"
exe_args_add "$(sedarg<<<"$result")"
result=''
fi
fi
result+="$char"
done
[ -n "$result" ] && \
exe_args_add "$(sed_arg_quotes<<<"$result")"
exe_args_add "$(sedarg<<<"$result")"
}

check_exe_args() {
Expand Down Expand Up @@ -6148,7 +6149,7 @@ lu_appcfg() {
fi
openconfig() {
shift ; [ "$1" ] && exe_args_add "$@"
cleanrun "$LW_SOURCE" -config "$LU_EXE" "${EXE_ARGS[@]}"
cleanrun env LWPPID="$LWPPID" "$LW_SOURCE" -config "$LU_EXE" "${EXE_ARGS[@]}"
}
rm_allappscfg() {
if print_question "Applications Settings" \
Expand Down
2 changes: 1 addition & 1 deletion lwrap/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname='lwrap'
pkgver='0.78.3'
pkgrel='3'
pkgrel='4'
pkgdesc='Lux Wine wrapper for RunImage container'
arch=('x86_64')
url='https://github.com/VHSgunzo/lux-wine'
Expand Down

0 comments on commit cbee49c

Please sign in to comment.