It doesn't act correctly when using reconfigure, but only because I am unsure what the correct behaviour is.
if (! rc) rc = "~/.openbox/rc";
rc_file = expandTilde(rc);
config.setFile(rc_file);
- if (! menu) menu = "~/.openbox/menu";
- menu_file = expandTilde(menu);
+
+ string rcmenu;
+ if (! menu) {
+ //have to come up with something better than this
+ config.load();
+ if (! config.getValue("session.menuFile", rcmenu))
+ rcmenu = "~/.openbox/menu";
+ } else {
+ rcmenu = menu;
+ }
+ menu_file = expandTilde(rcmenu.c_str());
no_focus = False;