Public bug reported:
tl;dr: it would be nice to be able to set environment variable on a per-
snap basis.
I ran into this need when trying to workaround a chrome/chromium bug [1]
where one needs to export MESA_GLSL_CACHE_DISABLE=true when starting the
browser to have the GPU sandbox working. It's doable this way:
MESA_GLSL_CACHE_DISABLE=true chromium
but is not convenient since more often than not, chromium is started by
clicking the icon. Editing the .desktop file would surely work too but
is not very user friendly. I'm also not sure if the .desktop file is not
refreshed along with the snap.
Additional information:
$ lsb_release -rd
Description: Ubuntu 18.04.4 LTS
Release: 18.04
$ apt-cache policy snapd
snapd:
Installed: 2.42.1+18.04
Candidate: 2.42.1+18.04
Version table:
*** 2.42.1+18.04 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.37.4+18.04.1 500
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64
Packages
2.32.5+18.04 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
1: https://bugs.chromium.org/p/chromium/issues/detail?id=264818
** Affects: snapd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1864240
Title:
[wishlist] allow setting per-snap environment variables
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1864240/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs