WindowsPathEditor icon indicating copy to clipboard operation
WindowsPathEditor copied to clipboard

Paths with env variables, e.g. %USERPROFILE%\go\bin

Open iva2k opened this issue 5 years ago • 4 comments

Paths with env variables, e.g. %USERPROFILE%\go\bin are not working. Apparently, env variables are not being substituted. However, it is very common practice to include environment variables for many different reasons. Would be nice to support it.

iva2k avatar Nov 11 '20 18:11 iva2k

@iva2k could you describe the issue a bit? What exactly is not working for you?

RockyMM avatar Aug 14 '23 16:08 RockyMM

wow, 3 years later...

I want to specify the path as %USERPROFILE%\go\bin, and keep it this way in the path environment, without substitution. So that the substitution will be done by Windows when using the variable.

iva2k avatar Sep 15 '23 23:09 iva2k

Yeah, sorry 😁 I was wondering is it something I was having a problem myself.

I will try out what you described out of curiosity. I would expect that WindowsPathEditor has nothing with the env substitution in the paths.

RockyMM avatar Sep 18 '23 13:09 RockyMM

I just tried this out. In the Add Dir dialog in the Folder input I pasted a path with a variable, e.g. %USERPROFILE%\Documents\My Downloads\windowspatheditor-1.7. What WindowsPathEditor did it replaced %USERPROFILE% with %HOME%. But it did apply it to my user path.

So I would say it works.

RockyMM avatar Sep 18 '23 14:09 RockyMM