1
diff -Nur gnome-applets-2.16.1/modemlights/modem-applet.c gnome-applets-2.16.1.new/modemlights/modem-applet.c
2
--- gnome-applets-2.16.1/modemlights/modem-applet.c 2006-12-14 14:59:55.000000000 +0000
3
+++ gnome-applets-2.16.1.new/modemlights/modem-applet.c 2006-12-14 15:00:23.000000000 +0000
6
launch_config_tool (GdkScreen *screen, OobsIface *iface)
8
- gchar *argv[4], *application;
9
+ gchar *argv[6], *application, *gksu;
12
+ gksu = g_find_program_in_path ("gksu");
13
application = g_find_program_in_path (NETWORK_TOOL);
16
+ if (!application || !gksu) {
17
+ g_free (application);
22
- argv[0] = application;
23
- argv[1] = "--configure";
24
- argv[2] = (gchar*) oobs_iface_get_device_name (iface);
28
+ argv[2] = application;
29
+ argv[3] = "--configure";
30
+ argv[4] = (gchar*) oobs_iface_get_device_name (iface);
33
ret = gdk_spawn_on_screen (screen, NULL, argv, NULL, 0,
34
NULL, NULL, NULL, NULL);