Skip to content

Commit dec1a09

Browse files
committed
fix Roaming directory path
1 parent 38e8356 commit dec1a09

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

opt/myapp/myapp_script/myapp-plugin-wine.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)