4 #define DBUS_COMPILATION /* cheat and use dbus-sysdeps */
5 #include <dbus/dbus-sysdeps.h>
6 #include <dbus/dbus-spawn.h>
7 #undef DBUS_COMPILATION
11 setup_func (void *data)
13 printf ("entering setup func.\n");
17 main (int argc, char **argv)
25 fprintf (stderr, "You need to specify a program to launch.\n");
30 argv_copy = dbus_new (char *, argc);
31 for (i = 0; i < argc - 1; i++)
32 argv_copy [i] = argv[i + 1];
33 argv_copy[argc - 1] = NULL;
35 if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy, NULL, setup_func, NULL, &error))
37 fprintf (stderr, "Could not launch application: \"%s\"\n",