~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/crash.c

  • Committer: Michael Vogt
  • Date: 2011-01-04 12:26:45 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110104122645-wa95fg4gawt6jsiv
src/crash.c: still run apport (just without gksu) if the user declines to report the system crashes

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
run_apport(TrayApplet *ta)
67
67
{
68
68
   g_debug("fire up the crashreport tool\n");
69
 
   if (check_system_crashes()) {
70
 
      // be nice and always ask first before firing up gksu with its fullscreen
71
 
      // window
72
 
      if (ask_invoke_apport_with_gksu()) {
73
 
         invoke_with_gksu(CRASHREPORT_REPORT_APP, 
74
 
                          _("<span weight=\"bold\" size=\"larger\">Please enter your password to access problem reports of system programs</span>"),
75
 
                          TRUE);
76
 
      }
77
 
      return TRUE;
78
 
   } else
 
69
   // be nice and always ask first before firing up gksu with its fullscreen
 
70
   // window
 
71
   if (check_system_crashes() && ask_invoke_apport_with_gksu()) {
 
72
      invoke_with_gksu(CRASHREPORT_REPORT_APP, 
 
73
                              _("<span weight=\"bold\" size=\"larger\">Please enter your password to access problem reports of system programs</span>"),
 
74
                              TRUE);
 
75
   } else {
79
76
      return g_spawn_command_line_async(CRASHREPORT_REPORT_APP, NULL);
 
77
   }
 
78
   return TRUE;
80
79
}
81
80
 
82
81
static gboolean