diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c index f49db4af7..cd23aa213 100644 --- a/gio/tests/desktop-app-info.c +++ b/gio/tests/desktop-app-info.c @@ -1253,8 +1253,7 @@ test_launch_uris_with_terminal (gconstpointer data) data_input_stream = g_data_input_stream_new (input_stream); script_contents = g_strdup_printf ("#!%s\n" \ "out='%s'\n" - "printf '%%s' \"$*\" > \"$out\"\n" - "printf '\\n' > \"$out\"\n", + "printf '%%s\\n' \"$*\" > \"$out\"\n", sh, output_fd_path); g_file_set_contents (terminal_path, script_contents, -1, &error);