仅仅在是链接时候才确认是mydoc

This commit is contained in:
2023-04-21 17:09:26 +08:00
parent 34698b710e
commit 4207be55e2

View File

@@ -149,7 +149,7 @@ CallProcess()
# Disable winemenubuilder
env WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v winemenubuilder.exe /f
# Link to Document
if [ -f "$WINEPREFIX/drive_c/users/$(logname)/My Documents" ]; then
if [ -L "$WINEPREFIX/drive_c/users/$(logname)/My Documents" ]; then
env WINEPREFIX="$WINEPREFIX" $WINE_CMD reg add 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' /t REG_EXPAND_SZ /v Personal /d "%USERPROFILE%\My Documents" /f
else