From db70882df160a7f88c47f489495d26dd63de5bfe Mon Sep 17 00:00:00 2001 From: asbytes <11296329+asbytes@users.noreply.github.com> Date: Thu, 11 Jun 2026 17:19:05 +0000 Subject: [PATCH] context: Fixed negated permission string for allow and share options It was solved partially in e0e1b20, but not for completely disallowed code path. Steps to reproduce: 1. Run any flatpak with explicit --unshare option, e.g: [user@user-standardpc ~]$ flatpak run --unshare=network --command=bash io.gitlab.librewolf-community 2. Inside flatpak shell spawn any executable: [io.gitlab.librewolf-community ~]$ flatpak-spawn ls / Result is: error: Unknown option --noshare=network --- common/flatpak-context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-context.c b/common/flatpak-context.c index 60f42d2ce..131c54ffa 100644 --- a/common/flatpak-context.c +++ b/common/flatpak-context.c @@ -293,7 +293,7 @@ flatpak_permission_to_args (FlatpakPermission *permission, { /* Completely disallowed */ - g_ptr_array_add (args, g_strdup_printf ("--no%s=%s", argname, name)); + g_ptr_array_add (args, g_strdup_printf ("--%s=%s", noargname, name)); } }