You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When first calling dialog.showSaveDialog, default to downloads/documents #49237
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem Description
When calling dialog.showSaveDialog for the first time on windows, it opens to the current working directory. This is definitely not where users want to save files.
Windows version tested: Windows 11 Enterprise 24H2 26100.6899 x64, macOS Tahoe
Proposed Solution
Save the last location as normal. If there's no existing saved location, default to something like the user's downloads directory, documents directory, or even their desktop. On linux, the user's home directory is a good default.
FYI, on windows server there's no downloads directory.
Alternatives Considered
Each application developer could solve this by providing/saving their own download locations.
To circumvent cases where no Downloads directory exists, we could also default to the user's home directory.
Thanks @nikwen for the suggestion! I've implemented the Downloads and Home directory fallback and tested it properly on windows.
PR #49441 is up for review
Activity
nikwen commentedon Dec 19, 2025
To circumvent cases where no Downloads directory exists, we could also default to the user's home directory.
Samyra312007 commentedon Dec 24, 2025
souravxbera commentedon Jan 18, 2026
Thanks @nikwen for the suggestion! I've implemented the Downloads and Home directory fallback and tested it properly on windows.
PR #49441 is up for review