depot/third_party/nixpkgs/pkgs/development/python-modules/img2pdf/default-icc-profile.patch
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

20 lines
523 B
Diff

diff --git a/src/img2pdf.py b/src/img2pdf.py
index 036232b..d2e7829 100755
--- a/src/img2pdf.py
+++ b/src/img2pdf.py
@@ -3815,14 +3815,7 @@ def gui():
def get_default_icc_profile():
- for profile in [
- "/usr/share/color/icc/sRGB.icc",
- "/usr/share/color/icc/OpenICC/sRGB.icc",
- "/usr/share/color/icc/colord/sRGB.icc",
- ]:
- if os.path.exists(profile):
- return profile
- return "/usr/share/color/icc/sRGB.icc"
+ return "@srgbProfile@"
def get_main_parser():