quilt-loader icon indicating copy to clipboard operation
quilt-loader copied to clipboard

Replace user folder with `~` or `<home>` in logs and crash reports

Open Ampflower opened this issue 1 year ago • 1 comments

Places where this shows:

  • Loading mappings: {}
  • + {{} '{}' from {}} / + {} where Loader shows which plugin loaded the mod with its ID and path. This ends up including Quilt Loader itself and Java.
  • The mod table for both quilt_loader and java, as Quilt Loader and Java can be placed separately outside the game folder while still being within the user's folder.
    • This is also applicable to QSL's Crash Report addition if it isn't using Quilt Loader to generate the table.
    • Quilt Loader can show this when any launcher, including Vanilla, launches the game to where the game directory doesn't normally include the libraries and assets folders.
    • Java can show this when Java Home happens to be placed within the home folder, like with using a JDK installed by IntelliJ.
    • This may also be shown if the mods folder can be set outside of the game folder, and mods were injected from outside the game folder, although this isn't a normal case.
  • Spongepowered Mixin's message of SpongePowered MIXIN Subsystem Version={} Source={} Service={} Env={}
    • Sample with user folder replaced with ~: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:~/.minecraft/ATLauncher/libraries/net/fabricmc/sponge-mixin/0.11.4+mixin.0.8.5/sponge-mixin-0.11.4+mixin.0.8.5.jar Service=Knot/Quilt Env=CLIENT

Might be useful:

  • user.home Java property, generally applicable
  • HOME environment, applicable to Linux, might work for other OSes.

Ampflower avatar Nov 28 '22 09:11 Ampflower