pgadmin-org / pgadmin-org/pgadmin4

Desktop 9.17 no longer remembers the last visited directory in file dialogs (always opens Downloads)

Open
#10,226 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
Python
Stars
3.8k
Forks
891
Avg merge
4d 7h
Merged PRs (30d)
8

Description

Bug description

After upgrading from pgAdmin 4 Desktop 9.16 to 9.17 on Windows, all file selection dialogs always open in the Windows Downloads folder.

In version 9.16, pgAdmin correctly remembered the last directory used and reopened subsequent file dialogs in that location.

This behavior appears to have been lost in 9.17.

Environment

  • pgAdmin version: 9.17
  • Installation mode: Desktop
  • Operating System: Windows 11

Steps to reproduce

  1. Open any file dialog in pgAdmin (for example Backup, Restore, Open SQL file or Import/Export Data).
  2. Browse to a folder other than Downloads.
  3. Complete or cancel the operation.
  4. Open the same (or another) file dialog again.

Expected behavior

The dialog should reopen in the last directory used, as it did in pgAdmin Desktop 9.16.

Actual behavior

The dialog always opens in the Windows Downloads folder.

Additional information

The issue affects all file dialogs that I have tested:

  • Open SQL file
  • Backup
  • Restore
  • Import/Export Data

I could not find any preference to configure the initial directory, and this behavior is different from pgAdmin Desktop 9.16, where the last visited directory was remembered.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior on Windows 11 using the listed file dialogs, comparing pgAdmin Desktop 9.17 with 9.16. Trace how a dialog is opened after browsing to and completing or cancelling an operation; done means subsequent dialogs reopen in the last directory instead of Downloads.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.