diff options
author | Jasmine Hassan <[email protected]> | 2012-10-29 08:20:51 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-10-29 15:23:13 +0200 |
commit | 40d028e599d8b81f087cf68cb16593e8080d9d17 (patch) | |
tree | e807394561307579aaa5ccf5375d8249c96547b9 /src | |
parent | 4c6a1bdb10a2c554aedb6bb75a24ca61ef421d6d (diff) | |
download | mate-user-share-40d028e599d8b81f087cf68cb16593e8080d9d17.tar.bz2 mate-user-share-40d028e599d8b81f087cf68cb16593e8080d9d17.tar.xz |
[file-share-properties] simplify launching mate-user-share
http://git.gnome.org/browse/gnome-user-share/commit/?id=8acfa630af2bab6eb2f5b04e37c4a36d0d55d20f
Diffstat (limited to 'src')
-rw-r--r-- | 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 a35296f..e2aae02 100644 --- a/src/file-share-properties.c +++ b/src/file-share-properties.c @@ -243,23 +243,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 mate-user-share program"); - } } static void |