-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Role
I very often use symlinks inside the .minecraft folders, and it always used to work just as expected, however in 1.20pr7 Mojang added the seldom talked about (anti)feature of allowed_symlinks.txt, which by default forbids all symlinks and prevents the game from starting at all unless a specific file with a specific syntax is placed on the instance folder
Suggestion
I think it would be good for the launcher to have a little option to create a global or local allowed_symlinks.txt file, a launch script does work for me since I only ever put "[regex].*" and I can just copy it into the folder, but in the rare occurrence someone actually uses this crap, (or like me, reinstalled their OS and the small file being missing from it's original place rendered most instances unplayable), I think this is the kind of thing launchers should handle, it doesn't even need to have a syntax specific implementation, just a text field where one can manually write the patterns will do just as fine
Benefit
Well, it would not make instances unplayable because of Mojang's poor design choices
This suggestion is unique
- I have searched the issue tracker and did not find an issue describing my suggestion, especially not one that has been rejected.
You may use the editor below to elaborate further.
This is what the syntax looks like by the way:
The file consists of entries (one per line) with following formats allowed:
- Lines starting with # are comments and are ignored.
- [type]pattern, where type can be glob, regex or prefix.
- prefix matches start of path with given pattern (so for /test paths /test, /test/, and /test/foo.txt would match).
- regex matches regular expression against whole path.
- glob uses OS-specific path matching mechanism (for example *.txt would usually match files with txt extension).
- Note: paths use OS-specific separators.
- pattern, which uses default prefix type.
Courtesy of the Minecraft Wiki