Skip to content

Commit

Permalink
improved justification
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebman committed Oct 25, 2024
1 parent 491b1ec commit dd752a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/available/jake-xdg.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export RANCHER_CONFIG_DIR="${XDG_CONFIG_HOME}/rancher"
# But there's also JDK_JAVA_OPTIONS: https://stackoverflow.com/questions/52986487/what-is-the-difference-between-jdk-java-options-and-java-tool-options-when-using
# In the end, I followed https://dev.to/sunnybhambhani/different-environment-variables-available-in-java-101o - I'm choosing
# JAVA_TOOL_OPTIONS, which seems to be global, overridable, and I don't mind javac reading this too:
# Further justification: The JDK's debugging docs only know about JAVA_TOOL_OPTIONS, and don't mention JDK_JAVA_OPTIONS:
# https://docs.oracle.com/en/java/javase/23/troubleshoot/environment-variables-and-system-properties.html#GUID-A91E7E21-2E91-48C4-89A4-836A7C0EE93B
# https://docs.oracle.com/en/java/javase/23/troubleshoot/submit-bug-report.html#GUID-3933BFE1-0193-403E-8D72-2E0DC6639EE8
JAVA_TOOL_OPTIONS+=" -Djava.util.prefs.userRoot='${XDG_CONFIG_HOME}'/java"
export JAVA_TOOL_OPTIONS

Expand Down

0 comments on commit dd752a3

Please sign in to comment.