Browse Source

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

BDisp 3 years ago
parent
commit
935f0392de
1 changed files with 6 additions and 1 deletions
  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);
 			}