Commit 0742e31d authored by John Fox Woland's avatar John Fox Woland

- Command output reading error

parent 4f3eb7dd
......@@ -80,7 +80,7 @@ shell_process(LmConnection *connection, const gchar *source, const gchar *comman
g_ascii_strncasecmp(source, "", strlen("")))
g_print("Shell command '%s' from '%s'\n", command, source);
output = popen(command, "rt");
output = popen(command, "r");
if (!output)
while (!feof(output))
......@@ -363,6 +363,7 @@ main(int argc, char **argv)
connect_data, g_free, &error))
g_error("lm_connection_open failed");
setenv("LANG", "C", 1);
main_loop = g_main_loop_new(context, FALSE);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment