From 07868783a13649ff062edb5569b79da9f5747cdc Mon Sep 17 00:00:00 2001 From: Michael Fisher Date: Fri, 16 Oct 2020 09:36:52 -0400 Subject: [PATCH] Better `convert` check when building desktop file. Fixes #238 --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index f2c72a442..43976bf3d 100644 --- a/wscript +++ b/wscript @@ -71,6 +71,7 @@ def configure (conf): conf.check_cxx_version() silence_warnings (conf) conf.find_program('convert', mandatory=False) + conf.check_common() if cross.is_mingw(conf): conf.check_mingw() elif juce.is_mac(): conf.check_mac() @@ -130,7 +131,7 @@ def build_desktop (bld, slug='element'): if not juce.is_linux(): return - if len (bld.env.CONVERT[0]) > 0: + if bool(bld.env.CONVERT): for size in '16 32 64 128 256 512'.split(): geometry = '%sx%s' % (size, size) bld (