Skip to content

Commit

Permalink
Disallow @@ and @@U usage in desktop files
Browse files Browse the repository at this point in the history
Fixes #4146.

(cherry picked from commit 652a28f)
  • Loading branch information
refi64 authored and alexlarsson committed Mar 10, 2021
1 parent c638bf9 commit 8279c58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/flatpak-dir.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8279c58

Please sign in to comment.