/// <summary> /// Do a cups call to check if it is installed /// </summary> private static bool CheckCupsInstalled() { try { LibcupsNative.cupsGetDefault(); } catch (DllNotFoundException) { System.Diagnostics.Debug.WriteLine("libcups not found. To have printing support, you need cups installed"); return(false); } return(true); }
/// <summary> /// Do a cups call to check if it is installed /// </summary> private static void CheckCupsInstalled() { try { LibcupsNative.cupsGetDefault(); } catch (DllNotFoundException) { #if NETCORE System.Diagnostics.Debug.WriteLine("libcups not found. To have printing support, you need cups installed"); #else Console.WriteLine("libcups not found. To have printing support, you need cups installed"); #endif cups_installed = false; return; } cups_installed = true; }