#include "extensions.h"
#include "gettext.h"
#include "config.h"
+#include "parse.h"
#include "grab.h"
#include "engine.h"
#include "plugin.h"
mkdir(path, (S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP |
S_IROTH | S_IWOTH | S_IXOTH));
g_free(path);
+ /* create the ~/.openbox/themes dir */
+ path = g_build_filename(g_get_home_dir(), ".openbox", "themes", NULL);
+ mkdir(path, (S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP |
+ S_IROTH | S_IWOTH | S_IXOTH));
+ g_free(path);
/* parse out command line args */
parse_args(argc, argv);
prop_startup(); /* get atoms values for the display */
extensions_query_all(); /* find which extensions are present */
-
+
if (screen_annex()) { /* it will be ours! */
timer_startup();
config_startup();
font_startup();
plugin_startup();
+ /* startup the parsing so plugins can register sections of the rc */
+ parse_startup();
+
/* load the plugins specified in the pluginrc */
plugin_loadall();
/* parse/load user options */
- config_parse();
+ parse_rc();
+
+ /* we're done with parsing now, kill it */
+ parse_shutdown();
engine_startup();
event_startup();