#ifdef CRASH_DIALOG
+#include "defs.h"
+
#include <glib.h>
#include <gtk/gtk.h>
#include <stdio.h>
sigaddset(&mask, SIGABRT);
#endif
-#ifdef SIGTERM
- signal(SIGTERM, crash_handler);
- sigaddset(&mask, SIGTERM);
-#endif
-
sigprocmask(SIG_UNBLOCK, &mask, 0);
#endif /* CRASH_DIALOG */
}
if (NULL != (filename = filesel_select_file(_("Save crash information"), buf))
&& *filename)
str_write_to_file(text, filename);
- g_free(filename);
}
/*!
*/
static void crash_create_bug_report(GtkButton *button, const gchar *data)
{
- open_uri("http://sylpheed-claws.sourceforge.net/cgi-bin/bugzilla/enter_bug.cgi",
- prefs_common.uri_cmd);
+ open_uri(CLAWS_BUGZILLA_URI, prefs_common.uri_cmd);
}
/*!
#if HAVE_LIBJCONV
" libjconv"
#endif
-#if USE_GPGME
- " GPGME"
-#endif
#if USE_OPENSSL
" OpenSSL"
#endif
static volatile unsigned long crashed_ = 0;
/*
- * let's hope startup_dir and argv0 aren't trashed.
+ * let's hope argv0 aren't trashed.
* both are defined in main.c.
*/
- extern gchar *startup_dir;
extern gchar *argv0;
#ifdef SIGTERM
if (sig == SIGTERM)
- clean_quit();
+ clean_quit(NULL);
#endif
/*
args[3] = buf;
args[4] = NULL;
- chdir(startup_dir);
+ chdir(sylpheed_get_startup_dir());
setgid(getgid());
setuid(getuid());
execvp(argv0, args);