Skip to content

Commit

Permalink
fix wine pfx init
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Feb 23, 2022
1 parent 9848fe6 commit 2bcd7c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions usr/bin/lutris-wine
Original file line number Diff line number Diff line change
Expand Up @@ -3509,6 +3509,7 @@ check_themes() {
then
if [ "$(cat "$WINEPREFIX/.lwtheme" 2>/dev/null)" != "$WINE_THEME" ]
then
check_ld_library
if [[ ! -z "$OLD_WINE" && -f "$OLD_WINE" ]]
then
"$OLD_WINE" regedit "$THEMES_DIR/$WINE_THEME.reg" &>/dev/null
Expand All @@ -3522,6 +3523,7 @@ check_themes() {
echo "$WINE_THEME" > "$WINEPREFIX/.lwtheme"
print_info notify "Wine theme successfully changed to $WINE_THEME"
try_shutdown_wine
unset LD_LIBRARY_PATH
fi
else
print_error yad "Themes Manager" "Wine theme not found!" &
Expand Down Expand Up @@ -3990,12 +3992,15 @@ check_winepfx() {
done
if [[ ! -f "$WINEPREFIX/userdef.reg" || ! -f "$WINEPREFIX/system.reg" || ! -f "$WINEPREFIX/user.reg" || ! -f "$WINEPREFIX/.update-timestamp" ]]
then
check_ld_library
if [[ ! -z "$OLD_WINE" && -f "$OLD_WINE" ]]
then
"$OLD_WINE" wineboot -i &>/dev/null
unset LD_LIBRARY_PATH
elif [ -f "$WINE" ]
then
"$WINE" wineboot -i &>/dev/null
unset LD_LIBRARY_PATH
else
print_error yad "Wine prefix initialization completed with error!"
return 1
Expand Down Expand Up @@ -4379,6 +4384,7 @@ check_win_version() {
then
export WIN_VER="xp64"
fi
check_ld_library
if [[ ! -z "$OLD_WINE" && -f "$OLD_WINE" ]]
then
"$OLD_WINE" winecfg -v win$WIN_VER &>/dev/null
Expand All @@ -4391,6 +4397,7 @@ check_win_version() {
fi
print_info notify "Windows version changed to Windows $WIN_VER"
try_shutdown_wine
unset LD_LIBRARY_PATH
else
return 1
fi
Expand Down

0 comments on commit 2bcd7c6

Please sign in to comment.