From 420f22c4d015e3f0f2b9e40b8dacd226a15b38c6 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sun, 2 May 2021 23:16:45 +0200 Subject: [PATCH] added some icc color hint --- extensions/fablabchemnitz/output_pro/outputpro.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/fablabchemnitz/output_pro/outputpro.py b/extensions/fablabchemnitz/output_pro/outputpro.py index c880626b..d813d758 100644 --- a/extensions/fablabchemnitz/output_pro/outputpro.py +++ b/extensions/fablabchemnitz/output_pro/outputpro.py @@ -55,10 +55,13 @@ class OutputProBitmap(inkex.EffectExtension): if "nt" in os.name: icc_dir = 'C:\\Windows\\System32\\spool\\drivers\\color' else: - icc_dir = '/usr/share/color/icc/' + icc_dir = '/usr/share/color/icc/colord/' list_of_profiles = os.listdir(icc_dir) + #inkex.utils.debug(list_of_profiles) selected_screen_profile = inkscape_config.split('id="displayprofile"')[1].split('uri="')[1].split('" />')[0].split('/')[-1] + if selected_screen_profile == '': + inkex.utils.debug("Configured icc color profile (Inkscape) is not set. Configure it in preferences and restart Inkscape to apply changes.") selected_print_profile = inkscape_config.split('id="softproof"')[1].split('uri="')[1].split('" />')[0].split('/')[-1] rgb_profile = '"' + inkscape_config.split('id="displayprofile"')[1].split('uri="')[1].split('" />')[0] + '"'