Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951437 - dev-java/java-config should respect XDG Base Directories
Summary: dev-java/java-config should respect XDG Base Directories
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-15 20:16 UTC by Jacob Abel
Modified: 2025-03-16 12:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Abel 2025-03-15 20:16:31 UTC
Java-config should respect XDG Base Directories as almost all other tools do. Specifically the `.gentoo/java-config-2` path should be located under the XDG User State Directory $XDG_STATE_HOME (for state that should persist between sessions).

Reproducible: Always

Actual Results:  
Currently java-config creates symlinks for the user's java-vm settings in `$HOME/.gentoo/java-config-2/`.

Expected Results:  
When $XDG_STATE_HOME is defined, java-config should prefer the path `$XDG_STATE_HOME/java-config-2` or `$XDG_STATE_HOME/gentoo/java-config-2` instead. 

Additionally to maintain consistency with existing behavior, if `.gentoo/java-config-2` already exists, it should continue using that path.