summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-03-05 13:49:36 +0000
committerAlexander Larsson <alexander.larsson@gmail.com>2021-03-10 11:13:38 +0100
commiteb7946bb6248923d8c90fe9b84425fef97ae580d (patch)
treef707eef01b21ca976091d26edc2ff1571c849e66
parent8279c5818425b6812523e3805bbe242fb6a5d961 (diff)
downloadflatpak-eb7946bb6248923d8c90fe9b84425fef97ae580d.tar.gz
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 1e7e8fdb24b51078f4c48e0711e24a14930ba1f0)
-rw-r--r--common/flatpak-dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c
index 82f2ce68..19d2fb78 100644
--- a/common/flatpak-dir.c
+++ b/common/flatpak-dir.c
@@ -7139,7 +7139,7 @@ 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)
+ else if (g_str_has_prefix (arg, "@@"))
g_print (_("Skipping invalid Exec argument %s\n"), arg);
else
g_string_append_printf (new_exec, " %s", arg);