summaryrefslogtreecommitdiffstats
path: root/krandr
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 18:34:09 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 18:34:09 +0000
commitc7c3e60e34d7b0849cf7c47e50a4a6030c984129 (patch)
treea2e9c792723055f3c0adee25c442927c023674f9 /krandr
parent34cdff59d83cca9fc2003086922e295effee2f12 (diff)
downloadtdelibs-c7c3e60e34d7b0849cf7c47e50a4a6030c984129.tar.gz
tdelibs-c7c3e60e34d7b0849cf7c47e50a4a6030c984129.zip
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
Diffstat (limited to 'krandr')
-rw-r--r--krandr/libkrandr.cc4
1 files 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");