diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-07-19 20:47:36 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-07-19 20:47:36 +0200 |
commit | 81cfe3de65065da2e9693971b05ee35cca6bf483 (patch) | |
tree | fa557dc984def90bd9bcbc44e8c98c65923ecd94 /redhat/tdelibs/tdelibs-14.0.0-cups_by_default.patch | |
parent | 04dea0b400cc28566c4a09214a332a2360f8ed3b (diff) | |
download | tde-packaging-81cfe3de65065da2e9693971b05ee35cca6bf483.tar.gz tde-packaging-81cfe3de65065da2e9693971b05ee35cca6bf483.zip |
RPM Packaging: more updates
Diffstat (limited to 'redhat/tdelibs/tdelibs-14.0.0-cups_by_default.patch')
-rw-r--r-- | redhat/tdelibs/tdelibs-14.0.0-cups_by_default.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/redhat/tdelibs/tdelibs-14.0.0-cups_by_default.patch b/redhat/tdelibs/tdelibs-14.0.0-cups_by_default.patch new file mode 100644 index 000000000..2f281cf04 --- /dev/null +++ b/redhat/tdelibs/tdelibs-14.0.0-cups_by_default.patch @@ -0,0 +1,33 @@ +--- ./tdeprint/kmfactory.cpp.ORI 2013-05-09 00:14:51.664045869 +0200 ++++ ./tdeprint/kmfactory.cpp 2013-05-09 00:16:59.154367127 +0200 +@@ -249,8 +249,21 @@ + conf->writeEntry("PrintSystem", sys); + conf->sync(); + } +- else if ( sys.length()==1 && sys[0].isDigit() ) // discard old-style settings ++ else if ( sys.length()==1 && sys[0].isDigit() ) { // discard old-style settings + sys = "lpdunix"; ++ } else { ++ //Always Autodetect ++ //it will not try autodetect if user changes any option ++ //when user force some option, AlwaysSearch will be "no" and then ++ //kprinter will not to try autodetect again. ++ if(conf->readEntry("AlwaysSearch") != "no" ) { ++ sys = autoDetect(); ++ conf->writeEntry("PrintSystem",sys); ++ conf->writeEntry("AlwaysSearch","yes"); ++ conf->sync(); ++ } ++ } ++ + return sys; + } + +@@ -278,6 +291,7 @@ + { + TDEConfig *conf = printConfig(); + conf->setGroup("General"); ++ conf->writeEntry("AlwaysSearch","no"); + conf->writeEntry("PrintSystem", syst); + conf->sync(); + |