diff options
author | netblue30 <netblue30@yahoo.com> | 2018-01-18 11:55:28 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-01-18 11:55:28 -0500 |
commit | 1e7045b55cc1e189dba6d9ed21c05c90663f3736 (patch) | |
tree | ea7a6b17b2acdc8988409e28a35fa8eea7683e0c | |
parent | Add pycharm-professional profile (diff) | |
download | firejail-1e7045b55cc1e189dba6d9ed21c05c90663f3736.tar.gz firejail-1e7045b55cc1e189dba6d9ed21c05c90663f3736.tar.zst firejail-1e7045b55cc1e189dba6d9ed21c05c90663f3736.zip |
Qt fixes: QML_DISABLE_DISK_CACHE=1, QTWEBENGINE_DISABLE_SANDBOX=1
-rw-r--r-- | src/firejail/env.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/firejail/env.c b/src/firejail/env.c index f423aeaf9..1114d497e 100644 --- a/src/firejail/env.c +++ b/src/firejail/env.c | |||
@@ -116,9 +116,13 @@ void env_ibus_load(void) { | |||
116 | 116 | ||
117 | // default sandbox env variables | 117 | // default sandbox env variables |
118 | void env_defaults(void) { | 118 | void env_defaults(void) { |
119 | // fix qt 4.8 | 119 | // Qt fixes |
120 | if (setenv("QT_X11_NO_MITSHM", "1", 1) < 0) | 120 | if (setenv("QT_X11_NO_MITSHM", "1", 1) < 0) |
121 | errExit("setenv"); | 121 | errExit("setenv"); |
122 | if (setenv("QML_DISABLE_DISK_CACHE", "1", 1) < 0) | ||
123 | errExit("setenv"); | ||
124 | if (setenv("QTWEBENGINE_DISABLE_SANDBOX", "1", 1) < 0) | ||
125 | errExit("setenv"); | ||
122 | // if (setenv("MOZ_NO_REMOTE, "1", 1) < 0) | 126 | // if (setenv("MOZ_NO_REMOTE, "1", 1) < 0) |
123 | // errExit("setenv"); | 127 | // errExit("setenv"); |
124 | if (setenv("container", "firejail", 1) < 0) // LXC sets container=lxc, | 128 | if (setenv("container", "firejail", 1) < 0) // LXC sets container=lxc, |