From c7c3e60e34d7b0849cf7c47e50a4a6030c984129 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 18:34:09 +0000 Subject: [PATCH] Fix ICC configuration when spaces are present in file name This closes Bug #400 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1239904 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krandr/libkrandr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/krandr/libkrandr.cc b/krandr/libkrandr.cc index 345d39521..326ff0b13 100644 --- a/krandr/libkrandr.cc +++ b/krandr/libkrandr.cc @@ -119,7 +119,7 @@ TQString KRandrSimpleAPI::applyIccFile(TQString screenName, TQString fileName) { int i; xcalib_result[0]=0; - icc_command = TQString("xcalib %1").arg(fileName); + icc_command = TQString("xcalib \"%1\"").arg(fileName); if ((pipe_xcalib = popen(icc_command.ascii(), "r")) == NULL) { printf("Xcalib pipe error\n\r"); @@ -262,7 +262,7 @@ TQString KRandrSimpleAPI::applySystemWideIccConfiguration(TQString kde_confdir) int i; xcalib_result[0]=0; - icc_command = TQString("xcalib %1").arg(getIccFileName(NULL, "Default", 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");