diff --git a/dochat.sh b/dochat.sh index f1a1fcc..f74b26c 100755 --- a/dochat.sh +++ b/dochat.sh @@ -97,6 +97,12 @@ function main () { # Issue #111 - https://github.com/huan/docker-wechat/issues/111 rm -f "$HOME/DoChat/Applcation Data/Tencent/WeChat/All Users/config/configEx.ini" + # Issue #165 - https://github.com/huan/docker-wechat/issues/165#issuecomment-1643063633 + HOST_DIR_HOME_DOCHAT_WECHAT_FILES="$HOME/DoChat/WeChat Files/" + HOST_DIR_HOME_DOCHAT_APPLICATION_DATA="$HOME/DoChat/Applcation Data/" + mkdir "$HOST_DIR_HOME_DOCHAT_WECHAT_FILES" -p + mkdir "$HOST_DIR_HOME_DOCHAT_APPLICATION_DATA" -p + # # --privileged: enable sound (/dev/snd/) # --ipc=host: enable MIT_SHM (XWindows) @@ -107,8 +113,8 @@ function main () { --rm \ -i \ \ - -v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \ - -v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \ + -v "$HOST_DIR_HOME_DOCHAT_WECHAT_FILES":'/home/user/WeChat Files/' \ + -v "$HOST_DIR_HOME_DOCHAT_APPLICATION_DATA":'/home/user/.wine/drive_c/users/user/Application Data/' \ -v /tmp/.X11-unix:/tmp/.X11-unix \ \ -e DISPLAY \