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() {}
2626
2727 static {
2828 try {
29- System .loadLibrary ("appindicator3" );
29+ System .loadLibrary ("ayatana-appindicator3" );
30+ LOG .debug ("Native code library ayatana-appindicator3 successfully loaded" );
3031 isLoaded = true ;
3132 } catch (UnsatisfiedLinkError e ) {
3233 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+ }
3340 }
3441 SymbolLookup loaderLookup = SymbolLookup .loaderLookup ();
3542 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 {
1616 @ EnabledOnOs (OS .LINUX )
1717 public void shouldHaveNoErrors () {
1818 try {
19- System .loadLibrary ("appindicator3" );
19+ System .loadLibrary ("ayatana-appindicator3" );
20+ LOG .debug ("Native code library ayatana-appindicator3 successfully loaded" );
2021 } catch (UnsatisfiedLinkError e ) {
2122 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+ }
2229 }
2330 }
2431}
You can’t perform that action at this time.
0 commit comments