3 #define DBUS_COMPILATION /* cheat and use dbus-sysdeps */
4 #include <dbus/dbus-sysdeps.h>
5 #undef DBUS_COMPILATION
9 main (int argc, char **argv)
17 fprintf (stderr, "You need to specify a program to launch.\n");
22 argv_copy = dbus_new (char *, argc);
23 for (i = 0; i < argc - 1; i++)
24 argv_copy [i] = argv[i + 1];
25 argv_copy[argc - 1] = NULL;
27 if (!_dbus_spawn_async (argv_copy, &error))
29 fprintf (stderr, "Could not launch application: \"%s\"\n",