Skip to content

Wrong download directory path when using WSL #365

@moon250

Description

@moon250

Describe the bug
I configured surge docker-compose's file to mount the download directory on /mnt/c/Users/me/Downloads so that I could easily find my files downloaded through Surge. It happen to be working almost as intended : Surge saves the file in /mnt/c/Users/me/Downloads/C:/Users/me/Downloads/.

To Reproduce

  1. Download compose.yml file as explained in README.md
  2. Set volumes to:
  volumes:
      - /mnt/c/Users/me/Downloads:/downloads
      - ./surge-config:/root/.local/state/surge
  1. Boot up the container / setup the token with the extension.
  2. Download a file : the file gets put in /mnt/c/Users/me/Downloads/C:/Users/me/Downloads/ instead of /mnt/c/Users/me/Downloads/.

Expected behavior
The file should be put directly in /mnt/c/Users/me/Downloads/ (as when you use ~/surge/downloads for example)

Screenshots
Image
Image
Image

Logs
Surge automatically writes debug log files. (Not with docker ? the log dir remains empty)

System info:

  • OS: Windows 11 with WSL 2.7.1.0
  • Surge Version: latest on docker image (v0.7.5)
  • Installed From: Docker images

Additional context

  • I know the docker image is a bit behind as the current version is v8.0 but I did not see any fix in the changelogs anyway
  • I tried to trace down the issue in the source code but without great success for now. I'll keep updating in this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions