@@ -30,6 +30,7 @@ readonly ZWIFT_NO_GAMEMODE="${ZWIFT_NO_GAMEMODE:-0}"
3030
3131readonly WINE_USER_HOME=" /home/user/.wine/drive_c/users/user"
3232readonly ZWIFT_HOME=" /home/user/.wine/drive_c/Program Files (x86)/Zwift"
33+ readonly ZWIFT_VOLUME=" ${WINE_USER_HOME} /AppData/Local/ZwiftVolume" # WORKAROUND issue 366 (remove when fixed)
3334readonly ZWIFT_DOCS=" ${WINE_USER_HOME} /AppData/Local/Zwift"
3435readonly ZWIFT_PREFS=" ${ZWIFT_DOCS} /prefs.xml"
3536
@@ -93,6 +94,16 @@ wait_until_wine_task_started() {
9394 wait_until " is_wine_task_running ${task_name} "
9495}
9596
97+ # ########################################################################################
98+ # #### Sync Zwift volume to Zwift AppData - WORKAROUND issue 366 (remove when fixed) #####
99+
100+ msgbox info " Synchronizing Zwift settings"
101+ if rsync -au " ${ZWIFT_VOLUME} /" " ${ZWIFT_DOCS} /" ; then
102+ msgbox ok " Synchronized Zwift settings"
103+ else
104+ msgbox warning " Failed to synchronize Zwift settings"
105+ fi
106+
96107# ##########################
97108# #### Configure Zwift #####
98109
@@ -197,4 +208,12 @@ while is_wine_task_running ZwiftApp.exe; do
197208 sleep 5
198209done
199210
211+ # WORKAROUND issue 366 (remove when fixed)
212+ msgbox info " Synchronizing Zwift settings"
213+ if rsync -au " ${ZWIFT_DOCS} /" " ${ZWIFT_VOLUME} /" ; then
214+ msgbox ok " Synchronized Zwift settings"
215+ else
216+ msgbox warning " Failed to synchronize Zwift settings"
217+ fi
218+
200219msgbox info " Zwift closed, exiting"
0 commit comments