summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2013-06-19 15:26:12 +0200
committerTill Kamppeter <till.kamppeter@gmail.com>2013-06-19 15:26:12 +0200
commit1149c245e70fcf6b0445f0958a7c1bb972b26f63 (patch)
tree10fe337f64f9d18e8200216ed06468c09c408eca
parent1b87b820854525f9709f19f3bb932e4f75210637 (diff)
downloadghostpdl-1149c245e70fcf6b0445f0958a7c1bb972b26f63.tar.gz
Fixed also the suppression of color management via colord in gstoraster
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712045.
-rw-r--r--gs/cups/gstoraster.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/cups/gstoraster.c b/gs/cups/gstoraster.c
index 15c63ad61..4b63a4886 100644
--- a/gs/cups/gstoraster.c
+++ b/gs/cups/gstoraster.c
@@ -616,7 +616,8 @@ main (int argc, char **argv, char *envp[])
}
/* support colord and the "color-management=off" option */
- device_inhibited = colord_get_inhibit_for_device_id (getenv("PRINTER"));
+ snprintf (tmpstr, sizeof(tmpstr), "cups-%s", getenv("PRINTER"));
+ device_inhibited = colord_get_inhibit_for_device_id (tmpstr);
t = cupsGetOption("color-management", num_options, options);
if (t != NULL && strcmp(t, "off") == 0)
device_inhibited = TRUE;