XDG directories - HOME folder (only appimage)
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14.1k
- Forks
- 2.2k
- Avg merge
- 7h 35m
- Merged PRs (30d)
- 51
Description
First and foremost consider this:
- Only RetroArch bugs should be filed here. Not core bugs or game bugs
- This is not a forum or a help section, this is strictly developer oriented
Description
I have XDG_DATA_HOME, XDG_CACHE_HOME, and XDG_CONFIG_HOME (and obvioulys HOME) configured in my environment.
When starting retroarch, some files are located in RetroArch-Linux-x86_64.AppImage.home, other at XDG_DATA_HOME, XDG_CACHE_HOME, and XDG_CONFIG_HOME.
Expected behavior
While it is good that retroarch respects my environment variables, the appimage is problematic, as it overrides HOME, and the initial configuration file are located at RetroArch-Linux-x86_64.AppImage.home.
I would prefer if all the data of retroarch (appimage) would be located consistently, and I believe putting everything in RetroArch-Linux-x86_64.AppImage.home would be the easiest way out.
The alternative solution would be to respect the user HOME too, and not even create RetroArch-Linux-x86_64.AppImage.home.
Actual behavior
not all XDG environment variables are respected.
Steps to reproduce the bug
- Set up
XDG_DATA_HOME,XDG_CACHE_HOME, andXDG_CONFIG_HOMEto point somewhere in the home directory - Start and use retroarch (download cores, start games, ...)
- Verify that
RetroArch-Linux-x86_64.AppImage.homeand config data exists - Verify that
XDG_CONFIG_HOMEcontains some retroarch configs
Bisect Results
No bisect
Version/Commit
RetroArch - Frontend for libretro
Version: 1.16.0 (Git 14cb373) Oct 2 2023
Compiler: GCC (9.4.0) 64-bit
Environment information
- OS: Linux
- Compiler: x
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the AppImage launch with XDG_DATA_HOME, XDG_CACHE_HOME, XDG_CONFIG_HOME, and HOME set, then trace where RetroArch selects its configuration and data directories. Done means the AppImage handles these locations consistently without unexpectedly splitting configuration and data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100