Intl: Improve loading libgettextlib #320
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi!320
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-319"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This improves the library loading of libgettextlib.so/dll/dylib on Windows and macOS similarly to how it was done for Linux previously.
The custom paths for Linux have been removed; these are now read from "java.library.path" and "javagi.library.path". The template application has been updated to set this.
I added "javagi.library.path" as an alternative to the existing "javagi.path" because I think it's a better name.
Fixes #319
@ -45,3 +45,3 @@static {String javagiPath = System.getProperty("javagi.path");String javagiPath = System.getProperty("javagi.path", "javagi.library.path");String javaPath = System.getProperty("java.library.path");I don't think this is correct.
getPropertyis documented to return "the string value of the system property, or the default value if there is no property with that key.", which I interpret to mean that it will return the string literal"javagi.library.path"in this case.See this jshell session:
@ -45,3 +45,3 @@static {String javagiPath = System.getProperty("javagi.path");String javagiPath = System.getProperty("javagi.path", "javagi.library.path");String javaPath = System.getProperty("java.library.path");You're right, the property value should have been the fallback, not the property name.
(I think "javagi.library.path" is more logical than "javagi.path", and this way it should not break existing behavior.)
Regrettably I just published a new release candidate yesterday, but I will fix this before the final release.
Thanks for notifying.