Table of Contents

Class LinuxUtils

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains static methods and properties related to Linux.

public static class LinuxUtils
Inheritance
LinuxUtils

Properties

IsAndroid

Indicates whether the current application is running on Android.

IsUbuntu

Indicates whether the current application is running on Ubuntu.

UnameResult

Gets results of the "uname -s" call.

Methods

DrawOnCairo(nint, Action<SKSurface>?)

Paints the SkiaSharp buffer onto the given Cairo drawing context.

GetCairoVersion()

Gets the Cairo library version as a .NET Version struct.

GetLinuxFlavor()

Determines the Linux flavor used by the current system.

GetStrError(int)

Retrieves the error message string corresponding to the specified error number.

IsCairoSupported()

Checks if the Cairo library and key functions are available. Use this at startup to ensure your application will run correctly.

IsCairoVersionSupported()

Checks if the Cairo library version is 1.10.0 or higher.

IsMusl()

Determines whether the current system uses the musl C library.

IsPackageInstalled(string)

Gets whether specific package is installed using dpkg utility.

LogLastNativeError(string)

Logs the last Win32 error that occurred, along with the name of the function where the error occurred.