Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / img2pdf / default-icc-profile.patch
blob139eafd63ced7978a9fd9da21867fcc568f22eb3
1 diff --git a/src/img2pdf.py b/src/img2pdf.py
2 index 036232b..d2e7829 100755
3 --- a/src/img2pdf.py
4 +++ b/src/img2pdf.py
5 @@ -3815,14 +3815,7 @@ def gui():
8 def get_default_icc_profile():
9 - for profile in [
10 - "/usr/share/color/icc/sRGB.icc",
11 - "/usr/share/color/icc/OpenICC/sRGB.icc",
12 - "/usr/share/color/icc/colord/sRGB.icc",
13 - ]:
14 - if os.path.exists(profile):
15 - return profile
16 - return "/usr/share/color/icc/sRGB.icc"
17 + return "@srgbProfile@"
20 def get_main_parser():