diff --git a/common/flatpak-run.c b/common/flatpak-run.c index 5ea125091..47246ab16 100644 --- a/common/flatpak-run.c +++ b/common/flatpak-run.c @@ -2724,6 +2724,9 @@ add_rest_args (FlatpakBwrap *bwrap, } else file = g_file_new_for_path (args[i]); + + if (flatpak_file_get_path_cached (file) == NULL) + return flatpak_fail (error, _("Invalid path ā€˜%s’"), args[i]); } if (file && !flatpak_exports_path_is_visible (exports,