Skip to content

[Windows] Duplicate entries in list of recent databases (slashes versus backslashes) #3454

@stefansundin

Description

@stefansundin

This bug only affects Windows.

  • When double-clicking a kdbx file in Windows File Explorer, KeePassXC will open it using backslashes (e.g. C:\Users\MyUser\Desktop\Passwords.kdbx).
  • When using the KeePassXC "open database" dialog to open a database, KeePassXC will open it using slashes (e.g. C:/Users/MyUser/Desktop/Passwords.kdbx).

Expected Behavior

File paths should be normalized to either use slashes or backslashes.

Current Behavior

There are duplicate entries in the list of recent databases. In addition, if one entry used a keyfile, that setting will not be saved for both files.

Possible Solution

I think it would make more sense to have KeePassXC only use backslashes in file paths in Windows. But it doesn't matter much. I don't know if one is easier than the other one.

Steps to Reproduce

  1. Open a file by double-clicking it in File Explorer, and have it saved in the list of recent databases. Close the database.
  2. Open the same file using the "Open database" dialog in KeePassXC. Close the database.
  3. Notice that there are two entries in the list of recent databases. Example:
    C:/Users/MyUser/Desktop/Passwords.kdbx
    C:\Users\MyUser\Desktop\Passwords.kdbx
    

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions