Flatpak: store settings, database and lock file in XDG directories
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Start by locating App.APP_CACHE_DIR and the code that creates or uses jdm.properties, the Derby database, and jdm.lock; check how logging reads XDG_STATE_HOME for the approach used in Flatpak. Decide how to handle existing ~/.jdm data, then verify settings, database, and lock files use the intended XDG config and data directories when FLATPAK_ID is set. The issue does not name tests or specify migration behavior.
Written by the indexing model from the issue text.
Description
Follow-up from #245.
App.APP_CACHE_DIR is ${user.home}/.jdm/<version> and holds jdm.properties, the Derby database and jdm.lock. In a Flatpak this writes into the real home (needs --filesystem=home) and is not removed on uninstall. Flatpak sets XDG_CONFIG_HOME/XDG_DATA_HOME to ~/.var/app/net.jdiskmark.JDiskMark/{config,data}.
- Use XDG config/data dirs when running in a Flatpak (
FLATPAK_IDset), and consider the same on native Linux. - Decide on migration of existing
~/.jdmdata. - Related: logging already uses
XDG_STATE_HOMEin the Flatpak (#245); see also #264.
- Dominant language
- Java
- Stars
- 6
- Forks
- 6
- Avg merge
- 10h 11m
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from JDiskMark/jdm-java
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
enhancement linux
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
documentation linux
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
enhancement linux
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
bug linux
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
All issues in JDiskMark/jdm-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bloxbean/yaci-store#1445 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Spare PermissionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Etar-Group/Etar-Calendar#2234 ·
Maintainers usually reply within 1 day
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesPossibly taken @CryoThrust claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
langchain4j/langchain4j#7320 ·
Maintainers usually reply within 1 day