[gnome-user-share] Simplify launching gnome-user-share
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-user-share] Simplify launching gnome-user-share
- Date: Fri, 24 Aug 2012 15:24:07 +0000 (UTC)
commit 8acfa630af2bab6eb2f5b04e37c4a36d0d55d20f
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 24 16:05:00 2012 +0100
Simplify launching gnome-user-share
src/file-share-properties.c | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/src/file-share-properties.c b/src/file-share-properties.c
index 7939bca..bf08b2c 100644
--- a/src/file-share-properties.c
+++ b/src/file-share-properties.c
@@ -174,23 +174,8 @@ password_combo_changed (GtkComboBox *combo_box)
static void
launch_share (void)
{
- char *argv[2];
- int i;
-
- i = 0;
- argv[i++] = USER_SHARE_PROGRAM;
- argv[i++] = NULL;
-
- if (!g_spawn_async (NULL,
- argv,
- NULL,
- 0, /* G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL */
- NULL,
- NULL,
- NULL,
- NULL)) {
+ if (!g_spawn_command_line_async (USER_SHARE_PROGRAM, NULL))
g_warning ("Unable to start gnome-user-share program");
- }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]