#include "config.h"
#include "ping.h"
#include "prompt.h"
-#include "hooks.h"
#include "gettext.h"
#include "render/render.h"
#include "render/theme.h"
/* register all the available actions */
actions_startup(reconfigure);
- hooks_startup(reconfigure);
/* start up config which sets up with the parser */
config_startup(i);
sn_shutdown(reconfigure);
event_shutdown(reconfigure);
config_shutdown();
- hooks_shutdown(reconfigure);
actions_shutdown(reconfigure);
} while (reconfigure);
}
obt_display_close();
if (restart) {
+ ob_debug_shutdown();
if (restart_path != NULL) {
gint argcp;
gchar **argvp;
g_free(ob_sm_id);
g_free(program_name);
- ob_debug_shutdown();
+ if (!restart)
+ ob_debug_shutdown();
return exitcode;
}
void ob_exit_with_error(const gchar *msg)
{
- g_message(msg);
+ g_message("%s", msg);
session_shutdown(TRUE);
exit(EXIT_FAILURE);
}