Gtk.Application.InitCheck Method
This method does the same work as Application.Init with only a single change, it does not terminate the program if the GUI can't be initialized. Instead it returns false on failure.

Syntax

public static bool InitCheck (string progname, ref string[] args)

Parameters

progname
The name of the program.
args
An string array with the parameters given to the program.

Returns

if the GUI has been succesfully initialized, otherwise false.

Remarks

This way the application can fall back to some toher means of communication with the user, for example a curses or command line interface.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)