Fixed data directory bug

This commit is contained in:
Glen Winters 2012-05-27 23:35:12 -07:00 committed by Moritz Lipp
parent 2d6a63e6fe
commit 7603897b84

View file

@ -133,7 +133,7 @@ zathura_init(int argc, char* argv[])
} }
if (data_dir != NULL) { if (data_dir != NULL) {
zathura->config.data_dir = g_strdup(config_dir); zathura->config.data_dir = g_strdup(data_dir);
} else { } else {
gchar* path = girara_get_xdg_path(XDG_DATA); gchar* path = girara_get_xdg_path(XDG_DATA);
zathura->config.data_dir = g_build_filename(path, "zathura", NULL); zathura->config.data_dir = g_build_filename(path, "zathura", NULL);