From f97daef82521c9297f6cc2d7925fe5c6ed526ad1 Mon Sep 17 00:00:00 2001
From: totaam <antoine@xpra.org>
Date: Sun, 22 Aug 2021 21:31:52 +0700
Subject: [PATCH] #3239 with shell=True, best not to use a list

---
 xpra/os_util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xpra/os_util.py b/xpra/os_util.py
index 2f8c0d64a..2f309f888 100644
--- a/xpra/os_util.py
+++ b/xpra/os_util.py
@@ -786,7 +786,7 @@ def find_lib_ldconfig(libname):
             ldconfig = t
             break
     import subprocess
-    p = subprocess.Popen([ldconfig, "-p"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
+    p = subprocess.Popen("%s -p" % ldconfig, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
     data = bytestostr(p.communicate()[0])
 
     libpath = re.search(pattern, data, re.MULTILINE)        #@UndefinedVariable
