Skip to content

Commit 8279c58

Browse files
refi64alexlarsson
authored andcommitted
Disallow @@ and @@U usage in desktop files
Fixes #4146. (cherry picked from commit 652a28f)
1 parent c638bf9 commit 8279c58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: common/flatpak-dir.c

+2
Original file line numberDiff line numberDiff line change
@@ -7139,6 +7139,8 @@ export_desktop_file (const char *app,
71397139
g_string_append_printf (new_exec, " @@ %s @@", arg);
71407140
else if (strcasecmp (arg, "%u") == 0)
71417141
g_string_append_printf (new_exec, " @@u %s @@", arg);
7142+
else if (strcmp (arg, "@@") == 0 || strcmp (arg, "@@u") == 0)
7143+
g_print (_("Skipping invalid Exec argument %s\n"), arg);
71427144
else
71437145
g_string_append_printf (new_exec, " %s", arg);
71447146
}

0 commit comments

Comments
 (0)