mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 01:03:47 +01:00
Create zathura instance later
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
3524c6da23
commit
d83d7bc7d9
12
main.c
12
main.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user