Create zathura instance later

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2014-01-19 17:17:14 +01:00
parent 3524c6da23
commit d83d7bc7d9

12
main.c
View File

@ -37,12 +37,6 @@ main(int argc, char* argv[])
#endif
gtk_init(&argc, &argv);
/* create zathura session */
zathura_t* zathura = zathura_create();
if (zathura == NULL) {
return -1;
}
/* parse command line arguments */
gchar* config_dir = NULL;
gchar* data_dir = NULL;
@ -130,6 +124,12 @@ main(int argc, char* argv[])
setsid();
}
/* create zathura session */
zathura_t* zathura = zathura_create();
if (zathura == NULL) {
return -1;
}
zathura_set_xid(zathura, embed);
zathura_set_config_dir(zathura, config_dir);
zathura_set_data_dir(zathura, data_dir);