Skip to content

Commit

Permalink
fix spawn commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Montes committed Dec 10, 2015
1 parent 3837262 commit 5ac625c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5ac625c

Please sign in to comment.