Skip to content

Commit

Permalink
v0.78.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Jan 29, 2024
1 parent fd68c67 commit 05a2bd3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# v0.78.2.4

* Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
* Update [GE-Proton](https://github.com/VHSgunzo/ge-proton-lw/releases/tag/v8.27) `v8.27`
* Update [steam-runtime-libs](https://github.com/VHSgunzo/steam-runtime-libs/releases/tag/v0.0.4) `v0.0.4`
* Update [GE-Proton](https://github.com/VHSgunzo/ge-proton-lw/releases/tag/v8.28) `v8.28`
* Fix loading bar cover
* Add duplicate application installation config for automatically created shortcuts
* Fix creation of shortcuts
* Minor fixes

# v0.78.2.3

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.2.3"
LW_VERSION="0.78.2.4"
41 changes: 20 additions & 21 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.2.3"
export LW_VERSION="0.78.2.4"
export LW_DEVELOPERS="VHSgunzo"

export RED='\033[1;91m'
Expand Down Expand Up @@ -30,8 +30,7 @@ ipath() {
then local -n _res="$2" ; shift 2
else local _res
fi
local arg="$(echo "$1"|\
sed "s|[^[:alnum:]/$&+,:;=?@#|'<>.^%!-]|*|g")"
local arg="$(sed "s|[^[:alnum:]/$&+,:;=?@#|'<>.^%!-]|*|g"<<<"$1")"
local _path _i _chr
_res=
for ((_i=0;_i<"${#arg}";_i++))
Expand Down Expand Up @@ -1668,6 +1667,14 @@ create_shortcut() {
try_ln "$LW_APPS_DIR" "${LW_DIR}/"
try_mv "$DESKF" "${LW_APPS_DIR}/"
update-desktop-database -q "$MENU_APPS_DIR"
if [ -f "$LU_EXE" ] && [[ -f "$EXE_CFG" || -f "$EXE_CENV" ]]
then
local SHRTEXEPFX="$(dirname "$LU_EXE")/$(basename "$LU_EXE"|sed 's|\.exe$||gi')"
[ -f "$EXE_CFG" ] && \
try_cp "$EXE_CFG" "$SHRTEXEPFX.wcfg"
[ -f "$EXE_CENV" ] && \
try_cp "$EXE_CENV" "$SHRTEXEPFX.cenv"
fi
[ -f "${LW_APPS_DIR}/${SHRT_NAME}.desktop" ] && \
print_info notify "Shortcut for '$SHRT_NAME' successfully created!"
wait
Expand Down Expand Up @@ -2173,16 +2180,14 @@ check_shrt() (
)

shrt_loop() {
WPFXDESKDIRS=(
WPFXSHRTDIRS=(
"$WINEPREFIX/drive_c/users/steamuser/Desktop"
"$WINEPREFIX/drive_c/users/Public/Desktop"
)
WPFXMENUDIRS=(
"$WINEPREFIX/drive_c/users/steamuser/AppData/Roaming/Microsoft/Windows/Start Menu"
"$WINEPREFIX/drive_c/ProgramData/Microsoft/Windows/Start Menu"
)
find_wpfxlnk() { find "$@" -type f -iname "*.lnk" 2>/dev/null ; }
find_wpfxurl() { find "$@" -type f -iname "*.url" 2>/dev/null ; }
find_wpfxlnk() { find "$@" -type f -iname "*.lnk" 2>/dev/null|sort -u ; }
find_wpfxurl() { find "$@" -type f -iname "*.url" 2>/dev/null|sort -u ; }
export pfxshrtname="$(basename "$WINEPREFIX")"
[ -f "/tmp/.lwshrt.$pfxshrtname" ] && \
! pidof wineserver &>/dev/null && \
Expand All @@ -2204,16 +2209,10 @@ shrt_loop() {
while pidof wineserver &>/dev/null
do
sleep 1 2>/dev/null
WPREFIXLNK=($(find_wpfxlnk "${WPFXDESKDIRS[@]}"))
WPREFIXLNK=($(find_wpfxlnk "${WPFXSHRTDIRS[@]}"))
unset LU_EXE EXE_ARG
shrt_from_lnk "${WPREFIXLNK[@]}"
WPREFIXURL=($(find_wpfxurl "${WPFXDESKDIRS[@]}"))
unset LU_EXE EXE_ARG
shrt_from_url "${WPREFIXURL[@]}"
WPREFIXLNK=($(find_wpfxlnk "${WPFXMENUDIRS[@]}"))
unset LU_EXE EXE_ARG
shrt_from_lnk "${WPREFIXLNK[@]}"
WPREFIXURL=($(find_wpfxurl "${WPFXMENUDIRS[@]}"))
WPREFIXURL=($(find_wpfxurl "${WPFXSHRTDIRS[@]}"))
unset LU_EXE EXE_ARG
shrt_from_url "${WPREFIXURL[@]}"
check_tray
Expand Down Expand Up @@ -3877,14 +3876,14 @@ lu_shortcut() {
print_error yad "Shortcuts Creator" "Lux Wine Shortcuts Creator already runing!"
exit 1
fi
if [ -f "$LU_EXE" ]
if [ -n "$(grep -io "\.lnk$"<<<"$LU_EXE")" ]
then shrt_from_lnk "$(realpath "$LU_START")"
elif [ -n "$(grep -io "\.url$"<<<"$LU_EXE")" ]
then shrt_from_url "$(realpath "$LU_START")"
elif [ -f "$LU_EXE" ]
then
get_shrt_data "$LU_EXE"
create_shortcut "$LU_EXE"
elif [ -n "$(basename "$LU_START"|grep -io "\.lnk$")" ]
then shrt_from_lnk "$(realpath "$LU_START")"
elif [ -n "$(basename "$LU_START"|grep -io "\.url$")" ]
then shrt_from_url "$(realpath "$LU_START")"
else
SHRT_EXE="$(yad --window-icon="$LW_DEF_ICO" --title "Lux Wine Shortcuts Creator" --file --center \
--file-filter="*.[Ee][Xx][Ee] *.[Ll][Nn][Kk]" --on-top --width=900 --height=600 --button="EXIT:1" --button="OK:0" 2>/dev/null)"
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.2'
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 05a2bd3

Please sign in to comment.