@@ -187,7 +187,7 @@ function wine_restore_prefix(){
187187 # D: drive is moved outside of $WINEPREFIX
188188 # you can feel free to delete your WINEPREFIX and just package D: drive into appimage
189189 ln -sfn ../../../../drive_d " $WINEPREFIX /dosdevices/d:"
190- # refer path: .../myapp /myapp_prefix/wine.win64/pfx/drive_c/myapp_patch_reg
190+ # refer path: .../${MYAPP_NAME} /myapp_prefix/wine.win64/pfx/drive_c/myapp_patch_reg
191191 [[ ! -L " $MNT_MYAPP /myapp_patch_reg" ]] && ln -sfn ../../../../myapp_patch_reg " $WINEPREFIX /drive_c/myapp_patch_reg"
192192
193193 # Font directory is moved outside of $WINEPREFIX
@@ -196,8 +196,7 @@ function wine_restore_prefix(){
196196 if [[ ! -L " $WINEPREFIX /drive_c/windows/Fonts" ]];
197197 then
198198 rm -rf " $WINEPREFIX /drive_c/windows/Fonts"
199- # refer path: .../myapp/myapp_fonts
200- # refer path: .../myapp/myapp_prefix/wine.win64/pfx/drive_c/windows/Fonts
199+ # refer path: .../{MYAPP_NAME}/myapp_prefix/wine.win64/pfx/drive_c/windows/Fonts
201200 ln -sfnv ../../../../../myapp_fonts " $WINEPREFIX /drive_c/windows/Fonts"
202201 fi
203202
@@ -207,9 +206,8 @@ function wine_restore_prefix(){
207206 mv -f " $WINEPREFIX /drive_c/users/$USER /AppData/Roaming" " $MNT_HOME /AppData"
208207 rm -rf " $WINEPREFIX /drive_c/users/$USER /AppData/Roaming"
209208 fi
210- # refer path: .../myapp/myapp_fonts
211- # refer path: .../myapp/myapp_prefix/wine.win64/pfx/drive_c/windows/Fonts
212- ln -sfnv ../../../../../../../../../../home/public_user/AppData/Roaming " $WINEPREFIX /drive_c/users/$USER /AppData/Roaming"
209+ # refer path: .../${MNT_MYAPP}/opt/${MYAPP_NAME}/myapp_prefix/wine.win64/pfx/drive_c/users/$USER/AppData/Roaming
210+ ln -sfnv ../../../../../../../../../home/public_user/AppData/Roaming " $WINEPREFIX /drive_c/users/$USER /AppData/Roaming"
213211
214212 echo " end >>>>>>>> [${FUNCNAME[0]} ]" >&3
215213}
0 commit comments