Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: remoting/host/linux/linux_me2me_host.py

Issue 317373006: Load LLVMpipe GL driver in Chromoting desktop session (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/linux/linux_me2me_host.py
diff --git a/remoting/host/linux/linux_me2me_host.py b/remoting/host/linux/linux_me2me_host.py
index 8adca6e6502e853d492a8386f1dac049c785381b..864db543f04022ecbe33bde29f715dc38c664d05 100755
--- a/remoting/host/linux/linux_me2me_host.py
+++ b/remoting/host/linux/linux_me2me_host.py
@@ -20,6 +20,7 @@ import logging
import optparse
import os
import pipes
+import platform
import psutil
import platform
import signal
@@ -254,6 +255,14 @@ class Desktop:
if os.environ.has_key(key):
self.child_env[key] = os.environ[key]
+ # Ensure that the software-rendering GL drivers are loaded by the desktop
+ # session, instead of any hardware GL drivers installed on the system.
+ self.child_env["LD_LIBRARY_PATH"] = (
+ "/usr/lib/%(arch)s-linux-gnu/mesa:"
+ "/usr/lib/%(arch)s-linux-gnu/dri:"
+ "/usr/lib/%(arch)s-linux-gnu/gallium-pipe" %
+ { "arch": platform.machine() })
+
# Read from /etc/environment if it exists, as it is a standard place to
# store system-wide environment settings. During a normal login, this would
# typically be done by the pam_env PAM module, depending on the local PAM
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698