Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop app not using correct "Downloads" directory on windows #1842

Open
svelle opened this issue Oct 28, 2021 · 2 comments
Open

Desktop app not using correct "Downloads" directory on windows #1842

svelle opened this issue Oct 28, 2021 · 2 comments

Comments

@svelle
Copy link
Member

svelle commented Oct 28, 2021

If you set your Downloads directory to something other than "User Home"/Downloads the Desktop app does not respect the new location.

Maybe this could help:
https://www.reddit.com/r/Batch/comments/ec8bwi/whats_the_universal_path_to_the_users_downloads/

@namazso
Copy link

namazso commented Mar 17, 2022

Also affected by this. Bug seems to be here:

export const getDefaultDownloadLocation = (): string => {
return path.join(os.homedir(), 'Downloads');
};

Solution could be https://stackoverflow.com/a/50391890 . I'd open a PR but i'm not a node / js developer.

@devinbinnie
Copy link
Member

Just for some context, it seems that Electron isn't doing this properly either. app.getPath('downloads') always returns C:\Users\<username>\Downloads it seems. Not sure how it's calculating that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants