Function wlc_sys::wlc_init
[−]
[src]
pub unsafe extern "C" fn wlc_init() -> bool
Initialize wlc. Returns false on failure.
Avoid running unverified code before wlc_init as wlc compositor may be run with higher privileges on non logind systems where compositor binary needs to be suid.
wlc_init's purpose is to initialize and drop privileges as soon as possible.
Callbacks should be set using wlc_set_*_cb functions before calling wlc_init, failing to do so will cause any callback the init may trigger to not be called.