mirror of
https://github.com/clechasseur/pathcopycopy.git
synced 2026-04-25 12:15:58 +03:00
[GH-ISSUE #117] [FEATURE] Support for custom prefixes for WSL paths #115
Labels
No labels
bug
duplicate
enhancement
enhancement
enhancement
fixed
help wanted
help wanted
invalid
pull-request
question
waiting for input
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pathcopycopy#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iliazlobin on GitHub (Apr 12, 2020).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/117
Originally assigned to: @clechasseur on GitHub.
Currently, when you choose "Copy WSL" option, the "/mnt" prefix is added to the full path. Sometimes, users prefer having folders mounted to the root location (or others but
/mnt). The/etc/wsl.conffile lets to control this behaviour:Having this set, the copied path would have the wrong value:
/mnt/c/path/to/my/fileinstead of/c/path/to/my/fileI found where it's hardcoded in one of the project's source code files, and have managed to edit it and recompile it for myself so that I have a correct path.
However, I believe, that this has to be configurable. Enabling a custom text field in settings (with a default value of
/mnt) would be the best option for everybody.@clechasseur commented on GitHub (Apr 13, 2020):
I agree that it could be configurable. But in your case, isn't this exactly what the MSYS Path command does?
@clechasseur commented on GitHub (Jul 4, 2020):
I've added a hidden setting to configure this. In the
HKEY_CURRENT_USER\Software\clechasseur\PathCopyCopyregistry key, setting theWSLPathPrefixvalue will override the default/mnt.This will be available in the next version.