int main(int argc, char *argv[]) { setlocale(LC_CTYPE, ""); bindtextdomain(PROJECT_NAME, LOCALEDIR); textdomain(PROJECT_NAME); gtk_set_locale(); gtk_init(&argc, &argv); XSetLocaleModifiers(""); XSetErrorHandler((XErrorHandler) handle_error); fb_init(); do_argv(argc, argv); profile_file = g_build_filename(g_get_user_config_dir(), "fbpanel", profile, NULL); ensure_profile(); gtk_icon_theme_append_search_path(gtk_icon_theme_get_default(), IMGPREFIX); signal(SIGUSR1, sig_usr1); signal(SIGUSR2, sig_usr2); do { the_panel = p = g_new0(panel, 1); p->xc = xconf_new_from_file(profile_file, profile); if (!p->xc) exit(1); panel_start(p->xc); if (config) configure(p->xc); gtk_main(); panel_stop(p); //xconf_save_to_profile(cprofile, xc); xconf_del(p->xc, FALSE); g_free(p); DBG("force_quit=%d\n", force_quit); } while (force_quit == 0); g_free(profile_file); fb_free(); exit(0); }
/** mkworld(): * Compiles the sources, and eventually builds with biblatex */ void mkworld() { //struct stat okbiblio; do_argv(2,LATEX_COMPILER,"main.tex"); do_argv(2,BIBTEX_COMPILER,"main.aux"); do_argv(2,LATEX_COMPILER,"main.tex"); do_argv(2,LATEX_COMPILER,"main.tex"); if (IS_FILE("main.idx")) { printf("\033[35mThere is main.idx...\033[0m\n"); do_argv(2,MAKEINDEX_COMP,"main.idx"); } do_argv(2,LATEX_COMPILER,"main.tex"); }