| #include <dbus/dbus-sysdeps.h> |
| #include <dbus/dbus-spawn.h> |
| printf ("entering setup func.\n"); |
| main (int argc, char **argv) |
| DBusError error = DBUS_ERROR_INIT; |
| fprintf (stderr, "You need to specify a program to launch.\n"); |
| argv_copy = dbus_new (char *, argc); |
| for (i = 0; i < argc - 1; i++) |
| argv_copy [i] = argv[i + 1]; |
| argv_copy[argc - 1] = NULL; |
| if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy[0], argv_copy, NULL, setup_func, NULL, &error)) |
| fprintf (stderr, "Could not launch application: \"%s\"\n", |