Quellcode durchsuchen

Fixes #1830. If "libcoreclr.so" is not present then "libncursesw.so" will be used.

BDisp vor 3 Jahren
Ursprung
Commit
935f0392de
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6 1
      Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs

+ 6 - 1
Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs

@@ -186,7 +186,12 @@ namespace Unix.Terminal {
 					return Mono.dlopen (libraryPath, RTLD_GLOBAL + RTLD_LAZY);
 				}
 				if (IsNetCore) {
-					return CoreCLR.dlopen (libraryPath, RTLD_GLOBAL + RTLD_LAZY);
+					try {
+						return CoreCLR.dlopen (libraryPath, RTLD_GLOBAL + RTLD_LAZY);
+					} catch (Exception) {
+
+						IsNetCore = false;
+					}
 				}
 				return Linux.dlopen (libraryPath, RTLD_GLOBAL + RTLD_LAZY);
 			}