Merge branch 'fix-desktop-app-info' into 'main'

tests: Fix minor race in desktop-app-info terminals test

See merge request GNOME/glib!2968
This commit is contained in:
Marco Trevisan 2022-10-18 14:44:42 +00:00
commit baa766295d

View File

@ -1259,8 +1259,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);