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

« back to all changes in this revision

Viewing changes to src/update-notifier.c

  • Committer: Michael Vogt
  • Date: 2009-03-02 14:51:55 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090302145155-vaik8ou13vt2fnob
* src/update-notifier.c:
  - add --debug-autolaunch switch

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
// delay on startup (to make session startup faster)
67
67
static int STARTUP_DELAY=5;
68
68
 
 
69
// global debug options
 
70
int HOOK_DEBUG;
 
71
int AUTOLAUNCH_DEBUG;
 
72
 
69
73
void invoke(gchar *cmd, gchar *desktop, gboolean with_gksu)
70
74
{
71
75
   if(with_gksu || FORCE_GKSU)
414
418
static GOptionEntry entries[] = 
415
419
{
416
420
   { "debug-hooks", 0, 0, G_OPTION_ARG_NONE, &HOOK_DEBUG, "Enable hooks debugging"},
 
421
   { "debug-autolaunch", 0, 0, G_OPTION_ARG_NONE, &AUTOLAUNCH_DEBUG, "Enable autolaunch debugging"},
417
422
   { "force", 0, 0, G_OPTION_ARG_NONE, &FORCE_START, "Force start even if the user is not in the admin group"},
418
423
   { "force-use-gksu", 0, 0, G_OPTION_ARG_NONE, &FORCE_GKSU, "Force running all commands (update-manager, synaptic) with gksu" },
419
424
   { "startup-delay", 0, 0, G_OPTION_ARG_INT, &STARTUP_DELAY, "Delay statup by given amount of seconds" },