LinuxDesktopRuntime class

Namespace Runic.Desktop · Runic.Desktop 0.7.0-preview.5

public static class LinuxDesktopRuntime

Prevents incompatible Linux toolkits from initializing in one process.

Methods

CanUse

public static bool CanUse(LinuxEmbeddedBackend backend)

Gets whether the backend is compatible with the process toolkit claim, without loading it.

ClaimBackend

public static void ClaimBackend(LinuxEmbeddedBackend backend)

Claims the toolkit before native initialization. A process cannot switch toolkits.

IsLibraryAvailable

public static bool IsLibraryAvailable(string libraryName)

Inspects Linux loader paths without loading a toolkit into this process.

Remarks

Checks the process search path and the system ldconfig cache, which is read once it has been read completely. Each definite result is cached for the process lifetime, so a library installed later is seen by a new process; a miss while the ldconfig cache could not be read is not cached. Native initialization remains the final runtime check.