X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fengine.c;h=c654d26380d942a287543528163b7f1fcb64d547;hb=bca8082d6d09a16a116c70001469a576b93157ce;hp=235277397ffddafaf287b3557401d6f3853f76a1;hpb=327a0b3de75187a23bb01ce5e8e6992fd1106a81;p=chaz%2Fopenbox diff --git a/openbox/engine.c b/openbox/engine.c index 23527739..c654d263 100644 --- a/openbox/engine.c +++ b/openbox/engine.c @@ -1,4 +1,5 @@ #include "engine.h" +#include "config.h" #include #include @@ -58,14 +59,16 @@ static gboolean load(char *name) return TRUE; } -void engine_startup(char *engine) +void engine_startup() { + ConfigValue engine; + module = NULL; - if (engine != NULL) { - if (load(engine)) + if (config_get("engine", Config_String, &engine)) { + if (load(engine.string)) return; - g_warning("Failed to load the engine '%s'", engine); + g_warning("Failed to load the engine '%s'", engine.string); g_message("Falling back to the default: '%s'", DEFAULT_ENGINE); } if (!load(DEFAULT_ENGINE)) {