Skip to content

finite_shell_init

The finite_shell_init function creates a new FiniteShell.

FiniteShell *finite_shell_init(char *device)
TypeDescription
char *deviceThe Wayland device to conenct to. Defaults to “wayland-0”.
#include <finite/draw.h>
FiniteShell *myShell = finite_shell_init("wayland-0");
if (!myShell) {
FINITE_LOG_FATAL("Unable to init shell");
}

When creating a new application, you must call this function. Although libfinite support custom implementations of some function, all libfinite functions that interact with the window expect a FiniteShell.

In production, you should use “wayland-0” as the Wayland Device.