From: Dana Jansens Date: Fri, 12 Sep 2003 01:31:41 +0000 (+0000) Subject: start the session shit, and grab the params before grabbing the rest of the parameter... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=988c09638997c26821f43c19f0bbb161a20e681b;p=chaz%2Fopenbox start the session shit, and grab the params before grabbing the rest of the parameters (and erroring on invalid ones) --- diff --git a/openbox/openbox.c b/openbox/openbox.c index e1467845..d8eae91a 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -101,6 +101,8 @@ int main(int argc, char **argv) g_set_prgname(argv[0]); + session_startup(&argc, &argv); + /* parse out command line args */ parse_args(argc, argv); @@ -120,8 +122,6 @@ int main(int argc, char **argv) ob_main_loop_signal_add(ob_main_loop, SIGHUP, signal_handler, NULL, NULL); ob_main_loop_signal_add(ob_main_loop, SIGPIPE, signal_handler, NULL, NULL); - session_startup(&argc, &argv); - ob_screen = DefaultScreen(ob_display); ob_rr_inst = RrInstanceNew(ob_display, ob_screen);