All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Olaf Meeuwissen <olaf.meeuwissen@avasys.jp>
Cc: printing-architecture@lists.linux-foundation.org,
	printing-japan@lists.linux-foundation.org,
	michael.vogt@ubuntu.com, Martin Pitt <martin.pitt@ubuntu.com>
Subject: Re: [Printing-architecture] [Printing-japan] Ubuntu Natty the first distribution which does automatic download of binary printer	driver packages
Date: Fri, 11 Mar 2011 17:15:55 +0100	[thread overview]
Message-ID: <4D7A4ABB.7030200@gmail.com> (raw)
In-Reply-To: <87r5aefjf2.fsf@avasys.jp>

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

On 03/11/2011 04:03 AM, Olaf Meeuwissen wrote:
>   4. Jockey not called by system-config-printer?
>      We seen some discrepancies in behaviour wrt the automatic printer
>      driver download depending on how the printer was "detected".
>      Connecting a USB printer worked fine.  Running newprinter.py from
>      the command-line is also okay.  However, when trying to add a USB
>      or network printer using system-config-printer nothing happened.
>      As in no attempt to have jockey download a driver was made.
>      I'll submit a bug report against system-config-printer later as I
>      don't have the details handy at the moment.

Tim, the patch to fix this (and which I have applied to the Ubuntu 
package) is attached./ Please apply it also upstream. Thanks.

    Till

[-- Attachment #2: 0001-Assured-that-on-all-uses-of-the-ppdsloader-class-the.patch --]
[-- Type: text/x-patch, Size: 2116 bytes --]

From 2bd9546c93d33e58bb03ff252091c8ea680c21ec Mon Sep 17 00:00:00 2001
From: Till Kamppeter <till.kamppeter@gmail.com>
Date: Fri, 11 Mar 2011 17:10:56 +0100
Subject: [PATCH] Assured that on all uses of the ppdsloader class the device ID is supplied

In some cases during the creation or the modification of a print queue
(newprinter.py) a device ID was available but it did not get supplied
to the ppdsloader class and this caused automatic driver downloads not
to get triggered.
---
 newprinter.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/newprinter.py b/newprinter.py
index 0d58a40..fa113cc 100644
--- a/newprinter.py
+++ b/newprinter.py
@@ -637,6 +637,8 @@ class NewPrinterGUI(GtkGUI):
 
             if self.dialog_mode == "ppd":
                 devid = self.device.id
+                if not self.devid:
+                    self.devid = devid
 
             if not devid:
                 devid = None
@@ -655,6 +657,8 @@ class NewPrinterGUI(GtkGUI):
                                         include_schemes=schemes,
                                         reply_handler=self.change_ppd_got_devs,
                                         error_handler=self.change_ppd_got_devs)
+                if self.devid:
+                    devid = self.devid
 
             self.ntbkNewPrinter.set_current_page(2)
             self.rbtnNPFoomatic.set_active (True)
@@ -714,6 +718,7 @@ class NewPrinterGUI(GtkGUI):
                 devid = device.id
                 mm = device.make_and_model
                 self.device = device
+                self.devid = devid
 
         # We'll also need the list of PPDs.
         self.ppdsloader = ppdsloader.PPDsLoader (device_id=devid,
@@ -970,6 +975,8 @@ class NewPrinterGUI(GtkGUI):
 
                 if not self.remotecupsqueue:
                     if self.ppds == None:
+                        if self.device.id and not self.devid:
+                            self.devid = self.device.id
                         devid = self.devid
                         if not devid:
                             devid = None
-- 
1.7.4.1


  parent reply	other threads:[~2011-03-11 16:15 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <F30723B8678F584CB6A4269E911255CB03396379@m1a.epkowa.co.jp>
     [not found] ` <4B8241D4.2040207@gmail.com>
     [not found]   ` <F30723B8678F584CB6A4269E911255CB034CE4DE@m1a.epkowa.co.jp>
     [not found]     ` <4B8E4CEF.8040007@gmail.com>
     [not found]       ` <F30723B8678F584CB6A4269E911255CB035D7CF6@m1a.epkowa.co.jp>
     [not found]         ` <4BBBA6A9.5050005@gmail.com>
     [not found]           ` <F30723B8678F584CB6A4269E911255CB0392318F@m1a.epkowa.co.jp>
     [not found]             ` <4BD18655.8060000@gmail.com>
     [not found]               ` <F30723B8678F584CB6A4269E911255CB03BF5E5C@m1a.epkowa.co.jp>
     [not found]                 ` <4C091F92.7050102@gmail.com>
     [not found]                   ` <4C1284F4.3000707@gmail.com>
     [not found]                     ` <4C89CF0C.60003@avasys.jp>
2010-11-18 16:55                       ` [Printing-architecture] Updates for auto-downloadable printer packages Till Kamppeter
2010-12-03  6:16                         ` yuji.saito
2010-12-06 16:54                           ` Till Kamppeter
2011-01-07  0:13                           ` [Printing-architecture] Ubuntu Natty the first distribution which does automatic download of binary printer driver packages Till Kamppeter
2011-01-07  0:20                           ` Till Kamppeter
2011-01-21  2:36                             ` yuji.saito
2011-01-24 23:00                               ` Till Kamppeter
     [not found]                               ` <20110131104358.GC4406@piware.de>
2011-02-24  9:38                                 ` Till Kamppeter
2011-02-25  7:00                                   ` yuji.saito
2011-02-25 12:40                                     ` Till Kamppeter
2011-02-25 21:26                                       ` Tim Waugh
2011-02-25 21:31                                         ` Till Kamppeter
2011-02-25 21:37                                         ` Till Kamppeter
2011-03-01 21:06                                         ` Till Kamppeter
2011-03-01 22:03                                           ` Till Kamppeter
2011-03-04  9:29                                             ` Olaf Meeuwissen
2011-03-04 16:50                                               ` Till Kamppeter
     [not found]                                               ` <20110304172254.GF30872@piware.de>
2011-03-07  1:32                                                 ` Olaf Meeuwissen
2011-03-11  3:03                                                   ` [Printing-architecture] [Printing-japan] " Olaf Meeuwissen
     [not found]                                                     ` <20110311080832.GB2541@piware.de>
2011-03-11 15:50                                                       ` Till Kamppeter
2011-03-14  9:29                                                       ` Olaf Meeuwissen
2011-03-11 16:15                                                     ` Till Kamppeter [this message]
2011-03-11 16:59                                                       ` Tim Waugh
2011-03-11 17:45                                                         ` Till Kamppeter
2011-03-12 16:21                                                           ` Till Kamppeter
2011-03-12 17:36                                                             ` Till Kamppeter
2011-03-14 11:13                                                               ` Tim Waugh
2011-03-14  9:39                                                             ` Olaf Meeuwissen
2011-03-14 20:47                                                               ` Till Kamppeter
2011-03-08 15:55                                           ` [Printing-architecture] " Tim Waugh
2011-02-25 13:03                                     ` Till Kamppeter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D7A4ABB.7030200@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=martin.pitt@ubuntu.com \
    --cc=michael.vogt@ubuntu.com \
    --cc=olaf.meeuwissen@avasys.jp \
    --cc=printing-architecture@lists.linux-foundation.org \
    --cc=printing-japan@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.