Skip to content

Commit eb7946b

Browse files
smcvalexlarsson
authored andcommitted
dir: Reserve the whole @@ prefix
If we add new features analogous to file forwarding later, we might find that we need a different magic token. Let's reserve the whole @@* namespace so we can call it @@something-else. Signed-off-by: Simon McVittie <smcv@collabora.com> (cherry picked from commit 1e7e8fd)
1 parent 8279c58 commit eb7946b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: common/flatpak-dir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7139,7 +7139,7 @@ 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)
7142+
else if (g_str_has_prefix (arg, "@@"))
71437143
g_print (_("Skipping invalid Exec argument %s\n"), arg);
71447144
else
71457145
g_string_append_printf (new_exec, " %s", arg);

0 commit comments

Comments
 (0)