Disallow @@ and @@u usage in desktop files

Fixes #4146.
This commit is contained in:
Ryan Gonzalez
2021-03-02 13:20:07 -06:00
committed by Alexander Larsson
parent ba381ae936
commit 652a28ffab

View File

@@ -7139,6 +7139,8 @@ export_desktop_file (const char *app,
g_string_append_printf (new_exec, " @@ %s @@", arg);
else if (strcasecmp (arg, "%u") == 0)
g_string_append_printf (new_exec, " @@u %s @@", arg);
else if (strcmp (arg, "@@") == 0 || strcmp (arg, "@@u") == 0)
g_print (_("Skipping invalid Exec argument %s\n"), arg);
else
g_string_append_printf (new_exec, " %s", arg);
}