From 81d166e4e60beba3bee6c6e45e1e2c79f5cb5749 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Fri, 21 Apr 2017 07:22:01 +0200 Subject: [PATCH] Add in-snap path to nvidia driver binaries to LD_LIBRARY_PATH --- scripts/snap-wrapper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/snap-wrapper.sh b/scripts/snap-wrapper.sh index 0122ad3..0ca2d83 100755 --- a/scripts/snap-wrapper.sh +++ b/scripts/snap-wrapper.sh @@ -29,6 +29,12 @@ export LIBGL_DRIVERS_PATH=$SNAP/usr/lib/$ARCH/dri # ensure the snappy gl libs win export LD_LIBRARY_PATH="$SNAP_LIBRARY_PATH:$LD_LIBRARY_PATH" +# Workaround in snapd for proprietary nVidia drivers mounts the drivers in +# /var/lib/snapd/lib/gl that needs to be in LD_LIBRARY_PATH +# Without that OpenGL using apps do not work with the nVidia drivers. +# Ref.: https://bugs.launchpad.net/snappy/+bug/1588192 +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/lib/snapd/lib/gl + # We set XDG_DATA_HOME to SNAP_USER_COMMON here as this will be the location we will # create all our application launchers in. The system application launcher will # be configured by our installer to look into this directory for available