snapcrafters / sommelier-core

Package a Windows application for Linux using a Snap with Wine.
MIT License
30 stars 10 forks source link

Fix for nvidia drivers on Ubuntu 21.10 and other very modern systems #28

Closed lucyllewy closed 2 years ago

lucyllewy commented 2 years ago

The snapcraft-runner script that snapcraft uses to launch apps, including sommelier-based apps, prepends $SNAP_LIBRARY_PATH onto $LD_LIBRARY_PATH. This actually needs to be addpended (on the end, not the beginning), so that the drivers are found last.

Ask @flexiondotorg for the gory details, as this is their fix discovered for the OBS-Studio snap that I've adapted ;-)

kenvandine commented 2 years ago

Perhaps snapcraft should append rather than prepend? Thoughts?

merlijn-sebrechts commented 2 years ago

This is now released to 1.0. Rebuilding affected snaps should fix this issue.