Skip to content

When first calling dialog.showSaveDialog, default to downloads/documents #49237

Description

@scottnonnenberg-signal

Preflight Checklist

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.

Additional Information

No response

Activity

  1. nikwen commented on Dec 19, 2025

    @nikwen
    Member

    To circumvent cases where no Downloads directory exists, we could also default to the user's home directory.

  2. Samyra312007 commented on Dec 24, 2025

    @Samyra312007
  3. souravxbera commented on Jan 18, 2026

    @souravxbera
    Contributor

    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

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions