f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
diff --git a/xpra/x11/fakeXinerama.py b/xpra/x11/fakeXinerama.py
|
|
index a5289e0e43..527cdf90c9 100755
|
|
--- a/xpra/x11/fakeXinerama.py
|
|
+++ b/xpra/x11/fakeXinerama.py
|
|
@@ -23,31 +23,7 @@ fakeXinerama_config_files = [
|
|
]
|
|
|
|
def find_libfakeXinerama():
|
|
- libname = "fakeXinerama"
|
|
- try:
|
|
- from ctypes.util import find_library
|
|
- flibname = find_library("fakeXinerama")
|
|
- if flibname:
|
|
- libname = flibname
|
|
- except Exception:
|
|
- pass
|
|
- if POSIX:
|
|
- for lib_dir in os.environ.get("LD_LIBRARY_PATH", "/usr/lib").split(os.pathsep):
|
|
- lib_path = os.path.join(lib_dir, libname)
|
|
- if not os.path.exists(lib_dir):
|
|
- continue
|
|
- if os.path.exists(lib_path) and os.path.isfile(lib_path):
|
|
- return lib_path
|
|
- if LINUX:
|
|
- try:
|
|
- libpath = find_lib_ldconfig("fakeXinerama")
|
|
- if libpath:
|
|
- return libpath
|
|
- except Exception as e:
|
|
- log("find_libfakeXinerama()", exc_info=True)
|
|
- log.error("Error: cannot launch ldconfig -p to locate libfakeXinerama:")
|
|
- log.estr(e)
|
|
- return find_lib("libfakeXinerama.so.1")
|
|
+ return "@libfakeXinerama@/lib/libfakeXinerama.so.1.0"
|
|
|
|
current_xinerama_config = None
|
|
|