Skip to content

Commit

Permalink
docker-for-win: Do not use cache in WSL subsystem #165
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Oct 30, 2019
1 parent 0470946 commit ff9da23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -6836,11 +6836,11 @@ create_cachefiles() { # create empty cache files owned by unprivileged
local Line
# create base cache folder
[ "$Cachebasefolder" ] || {
Cachebasefolder="$Hostuserhome/.cache/x11docker" ### FIXME really a good idea for MS Windows? WSL cache provides performance, but maybe must not be shared with container to avoid file access errors.
# case $Winsubsystem in
# "") Cachebasefolder="$Hostuserhome/.cache/x11docker" ;;
# *) Cachebasefolder="$(convertpath subsystem "$(cmd.exe /C "echo %userprofile%")" | rmcr)/x11docker/cache" ;;
# esac
#Cachebasefolder="$Hostuserhome/.cache/x11docker" ### FIXME really a good idea for MS Windows? WSL cache provides performance, but maybe must not be shared with container to avoid file access errors.
case $Winsubsystem in
"") Cachebasefolder="$Hostuserhome/.cache/x11docker" ;;
*) Cachebasefolder="$(convertpath subsystem "$(cmd.exe /C "echo %userprofile%")" | rmcr)/x11docker/cache" ;;
esac
}

Cachebasefolder="$(convertpath subsystem "$Cachebasefolder")"
Expand Down

0 comments on commit ff9da23

Please sign in to comment.