start the session shit, and grab the params before grabbing the rest of the parameters (and erroring on invalid ones)

This commit is contained in:
Dana Jansens 2003-09-12 01:31:41 +00:00
parent 49a73ce15c
commit 988c096389

View file

@ -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);