~ubuntu-branches/ubuntu/maverick/gnome-session/maverick

« back to all changes in this revision

Viewing changes to gnome-session/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-05-08 19:54:30 UTC
  • mfrom: (1.2.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: james.westby@ubuntu.com-20090508195430-emwvafeu8f4upq97
Tags: upstream-2.26.1
ImportĀ upstreamĀ versionĀ 2.26.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
 
400
400
        /* +2 for our new arguments, +1 for NULL */
401
401
        new_argv = g_malloc (argc + 3 * sizeof (*argv));
402
 
        
 
402
 
403
403
        new_argv[0] = "dbus-launch";
404
404
        new_argv[1] = "--exit-with-session";
405
 
        new_argv[2] = argv[0];
406
 
        for (i = 1; i < argc - 1; i++)
 
405
        for (i = 0; i < argc; i++) {
407
406
                new_argv[i + 2] = argv[i];
 
407
        }
408
408
        new_argv[i + 2] = NULL;
409
409
        
410
410
        if (!execvp ("dbus-launch", new_argv)) {