@CarlosRenĂȘ: As described above, there exists a patch for gtk. I described this 
in my answer on askubuntu: https://askubuntu.com/a/1544292 .
In short:

Create the patch print_dialog_without_avahi_discovered_printers.patch :

--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -4008,7 +4008,7 @@
           g_source_set_name_by_id (cups_backend->list_printers_poll, "[gtk+] 
cups_request_printer_list");
         }
 
-      avahi_request_printer_list (cups_backend);
+      // Do NOT add random network printers!    avahi_request_printer_list 
(cups_backend);
     }
 }
 


And reinstall gtk:
sudo apt build-dep libgtk-3-dev
apt source libgtk-3-dev
cd $(find gtk* -maxdepth 0 -type d)
git apply --reject --whitespace=fix 
../print_dialog_without_avahi_discovered_printers.patch
debuild -b  -us -uc  --no-pre-clean
cd ..
sudo apt install --reinstall ./libgtk-3-0_*.deb  
# do not update (dist-upgrade)
# sudo apt-mark hold libgtk-3-0

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cups in Ubuntu.
https://bugs.launchpad.net/bugs/1753509

Title:
  avahi-daemon adds/installs every printer on network

Status in cups package in Ubuntu:
  Triaged

Bug description:
  When connected to a network, avahi-daemon adds & installs all printer
  on a network without being prompted.  This is not desired behaviour.
  Discovery of the printers is good, but not automatic installation &
  addition.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: avahi-daemon 0.6.32~rc+dfsg-1ubuntu2
  ProcVersionSignature: Ubuntu 4.13.0-36.40~16.04.1-generic 4.13.13
  Uname: Linux 4.13.0-36-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.15
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Mon Mar  5 09:29:05 2018
  InstallationDate: Installed on 2017-09-29 (157 days ago)
  InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 
(20170801)
  ProcEnviron:
   LANGUAGE=en_US
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: avahi
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1753509/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to