Skip to content

Update Duckstation config directory paths#65

Merged
Matteo842 merged 1 commit into
Matteo842:mainfrom
mickylindsay:main
Jul 6, 2026
Merged

Update Duckstation config directory paths#65
Matteo842 merged 1 commit into
Matteo842:mainfrom
mickylindsay:main

Conversation

@mickylindsay

Copy link
Copy Markdown
Contributor

I see that you aren't taking PRs, but this is fairly small fix and puts the repo closer inline to what Duckstation expects.

Current implementation is looking for flatpak path, then XDG config path.
Duckstation uses $XDG_DATA_HOME when present and defaults back to $HOME/.local/share

Reference to the Duckstation README's linux directories https://github.com/stenzek/duckstation/blob/e7f2f101c2489e68446deff6dae9083e7a2114ea/README.md?plain=1#L235

Changes

  • set xdg_data_home variable to .local/share when XDG_DATA_HOME is not set
  • loop over the possible memcards paths and return the first that exists

@Matteo842 Matteo842 merged commit 81d70ec into Matteo842:main Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants