|
|
|
@ -177,7 +177,7 @@ TQString KRandrSimpleAPI::applyIccFile(TQString screenName, TQString fileName) {
|
|
|
|
|
icc_command = TQString("xcalib \"%1\"").arg(fileName);
|
|
|
|
|
if ((pipe_xcalib = popen(icc_command.ascii(), "r")) == NULL)
|
|
|
|
|
{
|
|
|
|
|
printf("Xcalib pipe error\n\r");
|
|
|
|
|
printf("Xcalib pipe error\n [xcalib apply]");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
fgets(xcalib_result, 2048, pipe_xcalib);
|
|
|
|
@ -242,7 +242,7 @@ TQString KRandrSimpleAPI::applyIccFile(TQString screenName, TQString fileName) {
|
|
|
|
|
icc_command = TQString("xcalib -c");
|
|
|
|
|
if ((pipe_xcalib = popen(icc_command.ascii(), "r")) == NULL)
|
|
|
|
|
{
|
|
|
|
|
printf("Xcalib pipe error\n\r");
|
|
|
|
|
printf("Xcalib pipe error\n [xcalib clear]");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
fgets(xcalib_result, 2048, pipe_xcalib);
|
|
|
|
@ -393,7 +393,7 @@ TQString KRandrSimpleAPI::applySystemWideIccConfiguration(TQString kde_confdir)
|
|
|
|
|
icc_command = TQString("xcalib \"%1\"").arg(getIccFileName(NULL, "Default", kde_confdir));
|
|
|
|
|
if ((pipe_xcalib = popen(icc_command.ascii(), "r")) == NULL)
|
|
|
|
|
{
|
|
|
|
|
printf("Xcalib pipe error\n\r");
|
|
|
|
|
printf("Xcalib pipe error [xcalib apply]\n");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
fgets(xcalib_result, 2048, pipe_xcalib);
|
|
|
|
@ -630,7 +630,7 @@ bool KRandrSimpleAPI::applySystemwideDisplayConfiguration(TQPtrList<SingleScreen
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
printf("[WARNING] Unable to find configuration for monitor %d; settings may not be correctly applied...\n\r", i); fflush(stdout);
|
|
|
|
|
printf("[WARNING] Unable to find configuration for monitor %d; settings may not be correctly applied...\n", i); fflush(stdout);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
freeScreenInfoStructure(randr_screen_info);
|
|
|
|
@ -1276,7 +1276,7 @@ TQString KRandrSimpleAPI::clearIccConfiguration() {
|
|
|
|
|
icc_command = TQString("xcalib -c");
|
|
|
|
|
if ((pipe_xcalib = popen(icc_command.ascii(), "r")) == NULL)
|
|
|
|
|
{
|
|
|
|
|
printf("Xcalib pipe error\n\r");
|
|
|
|
|
printf("Xcalib pipe error [xcalib clear]\n");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
fgets(xcalib_result, 2048, pipe_xcalib);
|
|
|
|
|