From 5ac625c5dbcb394eadedc64b8d8491c7758abc80 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Thu, 10 Dec 2015 10:30:27 -0600 Subject: [PATCH] fix spawn commands --- src/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.c b/src/lib.c index e6f459a..174a1ff 100644 --- a/src/lib.c +++ b/src/lib.c @@ -77,7 +77,7 @@ bool exec_task(const gchar* command_line) { gboolean result; GString* command; command = g_string_new(""); - g_string_printf(command, SHELL_PATH " -c '%s'", (char*)command_line ); + g_string_printf(command, SHELL_PATH " -c \"%s\"", (char*)command_line ); LOG(MOD "Executing: %s\n", command->str); result = g_spawn_command_line_sync(command->str,