diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-05-03 10:27:36 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-03 10:27:36 +0200 |
commit | 663cfcf3a8f2f84c048cb501e6c988a3f7b02d2c (patch) | |
tree | 1e841689e107cfb8a9dbc47ae3e8b46d152e1291 /app | |
parent | 1df3e4845b49081685966b957933f485bb22cbae (diff) | |
download | xdg-app-663cfcf3a8f2f84c048cb501e6c988a3f7b02d2c.tar.gz |
Fix make check if uninstalled
This uses various environment variables set during make check
to find the trigger, bwrap and xdg-app-dbusproxy from the build/source dir
rather than the installed location.
Diffstat (limited to 'app')
-rw-r--r-- | app/xdg-app-builtins-build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/xdg-app-builtins-build.c b/app/xdg-app-builtins-build.c index ea49b47..91d9827 100644 --- a/app/xdg-app-builtins-build.c +++ b/app/xdg-app-builtins-build.c @@ -150,7 +150,7 @@ xdg_app_builtin_build (int argc, char **argv, GCancellable *cancellable, GError app_files = g_file_get_child (app_deploy, "files"); argv_array = g_ptr_array_new_with_free_func (g_free); - g_ptr_array_add (argv_array, g_strdup (HELPER)); + g_ptr_array_add (argv_array, g_strdup (xdg_app_get_bwrap ())); custom_usr = FALSE; usr = g_file_get_child (app_deploy, "usr"); @@ -220,7 +220,7 @@ xdg_app_builtin_build (int argc, char **argv, GCancellable *cancellable, GError g_ptr_array_add (argv_array, NULL); - if (!execve (HELPER, (char **)argv_array->pdata, envp)) + if (!execve (xdg_app_get_bwrap (), (char **)argv_array->pdata, envp)) { g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errno), "Unable to start app"); return FALSE; |