← Back to team overview

desktop-packages team mailing list archive

[Bug 1376335] Re: XFCE printer GUI does not set the default printer when there is only one printer

 

Tim, principally system-config-printer sets newly added printers as
default if there is not already a default printer. This is done by the
cupshelpers.activateNewPrinter() method, called in the
on_btnNPApply_clicked() method in newprinter.py (interactive queue
addition) and in the create_queue() method of udev/udev-add-printer
(Plug'n'Print).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1376335

Title:
  XFCE printer GUI does not set the default printer when there is only
  one printer

Status in One Hundred Papercuts:
  Confirmed
Status in system-config-printer package in Ubuntu:
  Confirmed

Bug description:
  If there is only one printer, it should be set as the CUPS default.

  Use case:
  1. Add printer from the XFCE printers GUI
  2. Print test page
  2a: observe that the test page prints.
  3. Print from a modern application like evince.
  3a: Observe that the modern application is able to print.
  4. Print from and older application which makes use of the command line tools (such as xpdf)
  4a: Observe that the older application cannot print
  5. try to print from the command line using lpr
  5a: Observe that tools like lpr complain about there not being a default printer[1]
  6: Open the XFCE printers GUI and right click on the printer added in step 1.
  7: Select "Set as Default" from the context menu
  8: Try to print from lpr or an old application (such as pdf)
  8a: Observe that printing succeeds.

  
  [1] alan@ato:/disk/home/alan$ lpr
  lpr: Error - no default destination available.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: system-config-printer-common 1.5.1+20140911-0ubuntu1
  ProcVersionSignature: Ubuntu 3.16.0-10.15-generic 3.16.1
  Uname: Linux 3.16.0-10-generic x86_64
  ApportVersion: 2.14.7-0ubuntu2
  Architecture: amd64
  CupsErrorLog:
   W [01/Oct/2014:10:40:32 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'HP-LaserJet-2100-Gray..' already exists
   W [01/Oct/2014:11:56:41 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'HP-LaserJet-2100-Gray..' already exists
   W [01/Oct/2014:11:58:42 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'HP-LaserJet-2100-Gray..' already exists
  CurrentDesktop: XFCE
  Date: Wed Oct  1 12:11:01 2014
  InstallationDate: Installed on 2014-09-07 (24 days ago)
  InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140827)
  Lpstat: device for HP-LaserJet-2100: socket://192.168.1.9:9100
  MachineType: Gigabyte Technology Co., Ltd. GA-MA770T-UD3P
  PackageArchitecture: all
  Papersize: letter
  PpdFiles: HP-LaserJet-2100: HP LaserJet 2100 - CUPS+Gutenprint v5.2.10
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-10-generic root=UUID=cbf2be0c-e61a-4a6b-b7b5-a27fb3b8b816 ro quiet splash vt.handoff=7
  SourcePackage: system-config-printer
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 11/18/2009
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: F5
  dmi.board.name: GA-MA770T-UD3P
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF5:bd11/18/2009:svnGigabyteTechnologyCo.,Ltd.:pnGA-MA770T-UD3P:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-MA770T-UD3P:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: GA-MA770T-UD3P
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1376335/+subscriptions


References