File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
main/java/org/purejava/linux
test/java/org/purejava/linux Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,17 @@ private RuntimeHelper() {}
26
26
27
27
static {
28
28
try {
29
- System .loadLibrary ("appindicator3" );
29
+ System .loadLibrary ("ayatana-appindicator3" );
30
+ LOG .debug ("Native code library ayatana-appindicator3 successfully loaded" );
30
31
isLoaded = true ;
31
32
} catch (UnsatisfiedLinkError e ) {
32
33
LOG .error ("Native code library failed to load.\n " , e );
34
+ try {
35
+ System .loadLibrary ("appindicator3" );
36
+ LOG .debug ("Native code library appindicator3 successfully loaded" );
37
+ } catch (UnsatisfiedLinkError e2 ) {
38
+ LOG .error ("Native code library failed to load.\n " , e2 );
39
+ }
33
40
}
34
41
SymbolLookup loaderLookup = SymbolLookup .loaderLookup ();
35
42
SYMBOL_LOOKUP = name -> loaderLookup .lookup (name ).or (() -> LINKER .defaultLookup ().lookup (name ));
Original file line number Diff line number Diff line change @@ -16,9 +16,16 @@ class AppIndicatorTest {
16
16
@ EnabledOnOs (OS .LINUX )
17
17
public void shouldHaveNoErrors () {
18
18
try {
19
- System .loadLibrary ("appindicator3" );
19
+ System .loadLibrary ("ayatana-appindicator3" );
20
+ LOG .debug ("Native code library ayatana-appindicator3 successfully loaded" );
20
21
} catch (UnsatisfiedLinkError e ) {
21
22
LOG .error ("Native code library failed to load.\n " , e );
23
+ try {
24
+ System .loadLibrary ("appindicator3" );
25
+ LOG .debug ("Native code library appindicator3 successfully loaded" );
26
+ } catch (UnsatisfiedLinkError e2 ) {
27
+ LOG .error ("Native code library failed to load.\n " , e2 );
28
+ }
22
29
}
23
30
}
24
31
}
You can’t perform that action at this time.
0 commit comments