File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/org/purejava/appindicator Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public class AppIndicator extends _AppIndicator {
48
48
49
49
allPath .add ("/usr/lib" ); // for systems, that don't implement multiarch
50
50
allPath .add ("/app/lib" ); // for flatpak and libraries in the flatpak sandbox
51
+ allPath .add ("/usr/lib64" ); // for Fedora-like distributions
51
52
for (String path : allPath ) {
52
53
try {
53
54
if (!path .equals ("/app/lib" )) {
@@ -61,7 +62,10 @@ public class AppIndicator extends _AppIndicator {
61
62
} catch (UnsatisfiedLinkError ignored ) { }
62
63
}
63
64
64
- // When loading via System.load wasn't successful, try to load via System.loadLibrary
65
+ // When loading via System.load wasn't successful, try to load via System.loadLibrary.
66
+ // System.loadLibrary builds the libname by prepending the prefix JNI_LIB_PREFIX
67
+ // and appending the suffix JNI_LIB_SUFFIX. This usually does not work for library files
68
+ // with an ending like '3.so.1'.
65
69
if (!isLoaded ) {
66
70
try {
67
71
System .loadLibrary (LIBNAME_WITH_VERSION );
You can’t perform that action at this time.
0 commit comments