summaryrefslogtreecommitdiffstats
path: root/redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-06-24 19:58:32 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-06-24 19:58:32 +0200
commitd8e1ce857bedb9d018ae0918b4c90686d604c2df (patch)
tree111a8759c0599ce2be8d25946d21dee4f69923b9 /redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch
parent8743b3f65cd27e30aefe49f127105aa305a86051 (diff)
downloadtde-packaging-d8e1ce857bedb9d018ae0918b4c90686d604c2df.tar.gz
tde-packaging-d8e1ce857bedb9d018ae0918b4c90686d604c2df.zip
RPM Packaging: add 3.5.13.2 build patches
Diffstat (limited to 'redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch')
-rw-r--r--redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch b/redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch
new file mode 100644
index 000000000..dfb472ee1
--- /dev/null
+++ b/redhat/tdelibs/tdelibs-3.5.13.2-cups_by_default.patch
@@ -0,0 +1,33 @@
+--- ./kdeprint/kmfactory.cpp.ORI 2013-05-09 00:14:51.664045869 +0200
++++ ./kdeprint/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 @@
+ {
+ KConfig *conf = printConfig();
+ conf->setGroup("General");
++ conf->writeEntry("AlwaysSearch","no");
+ conf->writeEntry("PrintSystem", syst);
+ conf->sync();
+