From bad4c9ee18e30db1ce639478b79ad6cc1efa6c70 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Thu, 4 May 2017 22:17:58 +0200 Subject: [PATCH] locate mjpg-streamer plugins path hopefully... --- screenless/bureau/photography/photography.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/photography/photography.py b/screenless/bureau/photography/photography.py index ff5c8d0..4886996 100644 --- a/screenless/bureau/photography/photography.py +++ b/screenless/bureau/photography/photography.py @@ -70,7 +70,7 @@ class Photography(Bureau): cmd = mjpg.split() + ["-i", "'input_uvc.so -r 3264x2448 -n'", "-o", "'output_file.so -f /tmp/webcam -d 500 -s 1'"] print(cmd) - proc = subprocess.Popen(cmd, env={"LD_LIBRARY_PATH": mjpg_dir}) + proc = subprocess.Popen(cmd, shell=True, env={"LD_LIBRARY_PATH": mjpg_dir}) # copy last image to the tmpfile filelist = os.listdir()