Move global state to OS dependent directories#224
Merged
RedLime merged 2 commits intoRedLime:1.16.1from Jul 18, 2025
Merged
Conversation
Contributor
Author
|
@tildejustin ping since u wrote that PR |
Contributor
|
mine was more concerned with allowing srigt to work with fabric loader sandbox but nothing has happened with that for a while. happy for this to supercede it, esp b/c it looks like you know what you're doing with what should go where more on different OSs more than me :P |
Contributor
Author
|
Since this may hurt discoverability me-nx/SpeedRunIGT@a97234d adds a button to open the custom categories folder (like the one for the fonts folder), so that the user doesn't have to find it themselves. LMK if u want it in this PR |
tildejustin
pushed a commit
to tildejustin/speedrunigt
that referenced
this pull request
Jan 30, 2026
* fix gradlew file mode * change the global data path, move old files there
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge base version
Changes
Move global state from ~/speedrunigt to appropriate OS dependent paths to avoid polluting the home directory.
Context
I've seen #105, but:
a) there has been no progress on the linked fabric issue for the last year
b) that issue concerns cache directories, which speedrunigt shouldn't use for storing fonts & categories (for example on linux ~/.cache may be cleared at any time).
This PR moves the global state to %APPDATA% on Windows, an XDG mandated data directory on Linux, and ~/Library/Application Support/ on OS X.
I've quickly tested the changes on Linux and Windows.
Drawbacks
Alternatives
Instead of moving the directory the mod could check if the new directory exists, else fall back to the old ~/speedrunigt path if it exists.
Feel free to reject if you don't think this is important enough.