summaryrefslogtreecommitdiff
path: root/builder
diff options
context:
space:
mode:
authorAlexander Larsson <alexander.larsson@gmail.com>2016-04-15 11:50:34 +0200
committerAlexander Larsson <alexander.larsson@gmail.com>2016-04-15 11:50:34 +0200
commit265ba5e528e63a99d887ea8b1947446a74f52598 (patch)
tree32050509c0e51cb08f783e0f48a8dfc68b457fd7 /builder
parent1ee0fb7e96fb2b04aa8a03d8edc66d27208a59d9 (diff)
parentae96c039f9a3f675e999fd8408caf7e5b5188d83 (diff)
downloadxdg-app-265ba5e528e63a99d887ea8b1947446a74f52598.tar.gz
Merge pull request #128 from matthiasclasen/run-fixes
Some fixes for xdg-app-builder --run
Diffstat (limited to 'builder')
-rw-r--r--builder/builder-manifest.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/builder/builder-manifest.c b/builder/builder-manifest.c
index b89e5b6..26f6f33 100644
--- a/builder/builder-manifest.c
+++ b/builder/builder-manifest.c
@@ -1980,14 +1980,16 @@ builder_manifest_run (BuilderManifest *self,
g_ptr_array_add (args, g_strdup_printf ("--env=%s", env[i]));
}
- /* Inherit all finish args except the filesystem ones so the
- * command gets the same access as the final app */
+ /* Inherit all finish args except the filesystem and command
+ * ones so the command gets the same access as the final app
+ */
if (self->finish_args)
{
for (i = 0; self->finish_args[i] != NULL; i++)
{
const char *arg = self->finish_args[i];
- if (!g_str_has_prefix (arg, "--filesystem"))
+ if (!g_str_has_prefix (arg, "--filesystem") &&
+ !g_str_has_prefix (arg, "--command"))
g_ptr_array_add (args, g_strdup (arg));
}
}