diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-05-12 08:45:40 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-12 08:45:40 +0200 |
commit | 47bb7e2b2e6da03d3943a710743cce766809b3aa (patch) | |
tree | 0817ff019a9623c38515c97b570423850249ffcc | |
parent | 12ac77138e83f5a64538811eefe7c846ab02284e (diff) | |
download | xdg-app-47bb7e2b2e6da03d3943a710743cce766809b3aa.tar.gz |
Don't fail if there is no user-dirs.dirs
Based on patch from tristan
https://bugs.freedesktop.org/show_bug.cgi?id=95339
-rw-r--r-- | common/flatpak-run.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/flatpak-run.c b/common/flatpak-run.c index 2222ac0..b6cc831 100644 --- a/common/flatpak-run.c +++ b/common/flatpak-run.c @@ -1810,9 +1810,10 @@ flatpak_run_add_environment_args (GPtrArray *argv_array, NULL); g_autofree char *path = g_build_filename (gs_file_get_path_cached (app_id_dir), "config/user-dirs.dirs", NULL); - add_args (argv_array, - "--ro-bind", src_path, path, - NULL); + if (g_file_test (src_path, G_FILE_TEST_EXISTS)) + add_args (argv_array, + "--ro-bind", src_path, path, + NULL); } else if (xdg_dirs_conf != NULL && app_id_dir != NULL) { |