From 8a7a909f17a7336c54631aed92218b10986cdf26 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 16 Nov 2025 20:47:03 +0100 Subject: Use mutter workaround on Fedora >= 42 and Ubuntu >= 24.04. I assume it's also required on newer operating systems, though I should probably check. --- cscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cscript') diff --git a/cscript b/cscript index 772403751..8d0718f96 100644 --- a/cscript +++ b/cscript @@ -570,9 +570,10 @@ def configure_options(target, options, for_package=False): if target.platform == 'osx' and target.arch == 'arm64': opt += ' --wx-config=%s/wx-config' % target.bin + ubuntu_year = int(target.version.split('.')[0]) if target.platform == 'linux' and target.distro == 'ubuntu' else None if target.platform == 'linux' and ( - (target.distro == 'ubuntu' and target.version == '24.04') or - (target.distro == 'fedora' and target.version == '42') + (target.distro == 'ubuntu' and ubuntu_year >= 24) or + (target.distro == 'fedora' and int(target.version) >= 42) ): opt += ' --enable-grok --workaround-mutter' -- cgit v1.2.3