diff --git a/pressure-vessel/wrap.c b/pressure-vessel/wrap.c index fda9ca640634e416338b2916a514fe93bdf9c879..fbe9436dc4600042d1c62f6016704cfef84a769f 100644 --- a/pressure-vessel/wrap.c +++ b/pressure-vessel/wrap.c @@ -1007,7 +1007,7 @@ static GOptionEntry options[] = { "no-copy-runtime", '\0', G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &opt_copy_runtime, "Don't behave as described for --copy-runtime. " - "[Default unless $PRESSURE_VESSEL_COPY_RUNTIME is 1]", + "[Default unless $PRESSURE_VESSEL_COPY_RUNTIME is 1 or running in Flatpak]", NULL }, { "copy-runtime-into", '\0', G_OPTION_FLAG_FILENAME|G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, @@ -1312,6 +1312,9 @@ main (int argc, original_environ = g_get_environ (); + if (is_flatpak_env) + opt_copy_runtime = TRUE; + /* Set defaults */ opt_batch = pv_boolean_environment ("PRESSURE_VESSEL_BATCH", FALSE); /* Process COPY_RUNTIME_INFO first so that COPY_RUNTIME and VARIABLE_DIR