32 |
static void |
static void |
33 |
handle_url (GtkAboutDialog *about, const char *link, gpointer data) |
handle_url (GtkAboutDialog *about, const char *link, gpointer data) |
34 |
{ |
{ |
35 |
gint in; |
gchar *command[] = {"firefox", NULL, NULL}; |
|
gchar *command[] = {"/usr/bin/firefox", NULL, NULL}; |
|
36 |
|
|
37 |
command[1] = g_strdup (link); |
command[1] = g_strdup (link); |
38 |
g_spawn_async_with_pipes |
g_spawn_async |
39 |
(NULL, command, NULL, 0, NULL, NULL, NULL, &in, NULL, NULL, NULL); |
(NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL); |
40 |
g_free (command[1]); |
g_free (command[1]); |
41 |
} |
} |
42 |
|
|
43 |
static void |
static void |
44 |
handle_email (GtkAboutDialog *about, const char *link, gpointer data) |
handle_email (GtkAboutDialog *about, const char *link, gpointer data) |
45 |
{ |
{ |
46 |
gint in; |
gchar *command[] = {"evolution", NULL, NULL}; |
|
gchar *command[] = {"/usr/bin/evolution", NULL, NULL}; |
|
47 |
|
|
48 |
command[1] = g_strdup_printf ("mailto:%s", link); |
command[1] = g_strdup_printf ("mailto:%s", link); |
49 |
g_spawn_async_with_pipes |
g_spawn_async |
50 |
(NULL, command, NULL, 0, NULL, NULL, NULL, &in, NULL, NULL, NULL); |
(NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL); |
51 |
g_free (command[1]); |
g_free (command[1]); |
52 |
} |
} |
53 |
|
|