Skip to content

Commit

Permalink
Finally got strict mode working
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerCode committed Jan 3, 2024
1 parent 2c5e4ab commit 973e122
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions snap/snapcraft.yaml
Expand Up @@ -10,6 +10,32 @@ confinement: strict

base: core20

plugs:
graphics-core20:
interface: content
target: $SNAP/graphics
default-provider: mesa-core20

layout:
/usr/share/X11/xkb:
bind: $SNAP/usr/share/X11/xkb
/etc/glvnd:
bind: $SNAP/etc/glvnd
/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/dri:
bind: $SNAP/graphics/dri
/usr/share/glvnd:
bind: $SNAP/graphics/glvnd
/usr/share/libdrm:
bind: $SNAP/graphics/libdrm
/usr/share/drirc.d:
bind: $SNAP/graphics/drirc.d

environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/graphics/dri:$SNAP/graphics/lib:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/xorg:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
LIBGL_DRIVERS_PATH: $SNAP/graphics/dri
__EGL_VENDOR_LIBRARY_DIRS: $SNAP/graphics/glvnd/egl_vendor.d
EGL_PLATFORM: wayland

apps:
tylercode-cycles:
command: bin/cycles
Expand All @@ -22,6 +48,7 @@ apps:
- unity7
- pulseaudio
- opengl
- graphics-core20

parts:
tylercode-cycles:
Expand Down

1 comment on commit 973e122

@TylerCode
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit fixes this error:

libGL error: MESA-LOADER: failed to open swrast: /snap/tylercode-cycles/x1/usr/lib/x86_64-linux-gnu/dri `/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /snap/tylercode-cycles/x1/usr/lib/x86_64-linux-gnu/dri `, suffix _dri)
libGL error: failed to load driver: swrast
2024/01/02 23:33:49 Fyne error:  window creation error
2024/01/02 23:33:49   Cause: VersionUnavailable: GLX: Failed to create context: GLXBadFBConfig
2024/01/02 23:33:49   At: /root/go/pkg/mod/fyne.io/fyne/v2@v2.4.2/internal/driver/glfw/driver_notwindows.go:9

Please sign in to comment.