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
v3.5.13-sru
tpearson 13 years ago
parent 34cdff59d8
commit c7c3e60e34

@ -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");

Loading…
Cancel
Save