From 151bb561befc5279f745f6190bc58f71017cabc9 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Sun, 5 Apr 2026 23:35:49 +1200 Subject: Add user_start for easy extensibility via config.h and fix on_cmdbar_activate not returning anything --- config.def.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index c69eb9f..16102aa 100644 --- a/config.def.h +++ b/config.def.h @@ -193,4 +193,15 @@ static const Command commands[] = { { "forward", &_cmd_forward }, }; + +/* User start/hooks + * Do whatever you want here, initialize whatever custom hooks you want to your heart's content. At this point config.h can just become an extension api on crack, knock yourself out + * have fun */ +/* It runs just before gtk_main(), after everything prior has been initialized. */ +void user_start(Cinnamon* cinnamon) { + /* Function has to exist or else main.c won't compile, this code is so scuffed T_T */ + /* for now just printf to see if it loads */ + printf("[user_start] starting NOW!\n"); +} + #endif -- cgit v1.2.3