Commit f6e0c240 authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix parse dnd command with argument

parent 25003a7c
......@@ -74,7 +74,10 @@ drop_data_cb (GtkWidget * w, GdkDragContext * dc, gint x, gint y,
gchar *action, *arg;
arg = g_shell_quote (dstr);
action = g_strdup_printf ("%s %s", options.common_data.command, arg);
if (g_strstr_len (options.common_data.command, -1, "%s"))
action = g_strdup_printf (options.common_data.command, arg);
else
action = g_strdup_printf ("%s %s", options.common_data.command, arg);
g_free (arg);
g_spawn_command_line_async (action, NULL);
g_free (action);
......
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