Commit 33fbc219 authored by Vincent Untz's avatar Vincent Untz Committed by Vincent Untz

when relaunching with dbus-launch, correctly copy arguments that were

2009-04-10  Vincent Untz  <vuntz@gnome.org>

	* gnome-session/main.c: (require_dbus_session): when relaunching with
	dbus-launch, correctly copy arguments that were passed to
	gnome-session over to the new call
	Fix bug #574310.

svn path=/trunk/; revision=5385
parent 634b1747
2009-04-10 Vincent Untz <vuntz@gnome.org>
* gnome-session/main.c: (require_dbus_session): when relaunching with
dbus-launch, correctly copy arguments that were passed to
gnome-session over to the new call
Fix bug #574310.
2009-04-10 Vincent Untz <vuntz@gnome.org>
* tools/gnome-session-save.c: (main): make gnome-session-save --kill
......
......@@ -399,12 +399,12 @@ require_dbus_session (int argc,
/* +2 for our new arguments, +1 for NULL */
new_argv = g_malloc (argc + 3 * sizeof (*argv));
new_argv[0] = "dbus-launch";
new_argv[1] = "--exit-with-session";
new_argv[2] = argv[0];
for (i = 1; i < argc - 1; i++)
for (i = 0; i < argc; i++) {
new_argv[i + 2] = argv[i];
}
new_argv[i + 2] = NULL;
if (!execvp ("dbus-launch", new_argv)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment