blob: c0d6d1e4b0da9dbce3d4c894bf5bc11e4e34f46b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/build-aux/gen-thumbnailer.py b/build-aux/gen-thumbnailer.py
index 05ac821..5db039f 100644
--- a/build-aux/gen-thumbnailer.py
+++ b/build-aux/gen-thumbnailer.py
@@ -29,6 +29,9 @@ if os.name == 'nt':
cmd = args.printer
+if os.environ.get('NEED_WINE', ''):
+ cmd = [os.environ['WINE'], cmd]
+
mimetypes_out = subprocess.Popen(cmd, env=newenv, stdout=subprocess.PIPE).communicate()[0]
if not mimetypes_out:
sys.exit(1)
|