qbittorrent-cli icon indicating copy to clipboard operation
qbittorrent-cli copied to clipboard

fix(config): add Windows home dir path

Open Acamol opened this issue 1 year ago • 2 comments

On PowerShell / CMD the HOME environment variable is often not defined, so $HOME/.config/qbt will evaluate to C:/.config/qbt instead of C:/<username>/.config/qbt as one would expect.

Acamol avatar Jan 09 '24 00:01 Acamol

Hey @Acamol , sorry for this taking so long to get back to. I made a change to use the built in filepath.join to build the path which should make it use the correct separator for the environment. On Windows that's backslash \.

Could you try this out and report back and if it's ok? Then we can merge this and get a new release out.

ludviglundgren avatar Apr 05 '24 06:04 ludviglundgren

It seems to be working fine on my system with your change.

Acamol avatar May 10 '24 14:05 Acamol

Sorry about the delay, will get this merged and some other PRs and then make a new release :partying_face:

ludviglundgren avatar Aug 19 '24 14:08 ludviglundgren