From ddeab11615f88c55e3a55fc9cae85a8eabe165a5 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Tue, 4 Oct 2022 22:57:05 -0400 Subject: [PATCH] Bypass desktop portal in Snap This will fix https://github.com/solvespace/solvespace/issues/1067 by setting GTK_USE_PORTAL=0 in the Snap package. This will use a file chooser from the point of view of the application to open and save files, instead of using the "desktop portal" where the chooser runs outside the snap and the file is exposed dynamically into the snap at an automatically generated path. This will allow files used in assemblies to be seen by SolveSpace as being at their real paths, so the references to them will be saved as proper relative-path references based on where the files actually are, instead of as references to where the portal has exposed them. The downside is that without the portal you can't point the application at files that *aren't* exposed to the Snap. --- pkg/snap/snap/snapcraft.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/snap/snap/snapcraft.yaml b/pkg/snap/snap/snapcraft.yaml index 79baaad..7d3cf77 100644 --- a/pkg/snap/snap/snapcraft.yaml +++ b/pkg/snap/snap/snapcraft.yaml @@ -27,6 +27,8 @@ apps: desktop: solvespace.desktop extensions: [gnome] plugs: [opengl, unity7, home, removable-media, gsettings, network] + environment: + GTK_USE_PORTAL: "0" cli: command: usr/bin/solvespace-cli extensions: [gnome]