[Kde-print-devel] [Bug 143225] [KDE4] Remove remaining usage of private CUPS API functions (use ~/cups/loptions instead ~/.lpoptions for CUPS 1.2.0 + later)

Kurt Pfeifle pfeifle at kde.org
Thu Mar 22 20:04:35 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=143225         
pfeifle kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      everconfirmed|0                           |1
            Summary|kprinter does not recognize |[KDE4] Remove remaining
                   |CUPS printer instances and  |usage of private CUPS API
                   |their options               |functions (use
                   |(~/.cups/lpoptions)         |~/cups/loptions instead
                   |                            |~/.lpoptions for CUPS 1.2.0
                   |                            |+ later)



------- Additional Comments From pfeifle kde org  2007-03-22 20:04 -------
   "If printer instances are defined in ~/.lpoptions, kprinter sees them, 
    but the `lpoptions` command adds them always to ~/.cups/lpoptions."

KDEPrint is guilty of ab-using a few "private" interfaces of the CUPS API. When CUPS moved from 1.1.x to 1.2.0, some of these interfaces changed, and KDEPrint does now no longer understand some little details of CUPS' doing.

One of the things that changed is the location of the file to store "lpoptions".

You can fix this on your side locally, like so:


  * copy the contents of ~/.loptions to ~/.cups/lpoptions:
 
    mkdir ~/.cups   # in case this directory is not yet there
    cat ~/.loptions >> ~/.cups/lpoptions   # in case the file already exists

 
  * remove ~/.loptions and create a symlink pointing from ~/.loptions to ~/.cups/lpoptions:

    rm ~/.loptions 
    ln -s ~/.cups/lpoptions ~/.loptions


The symlink will ensure that KDEPrint will use the right file for CUPS even if it only knows to access the "old" filename.



------------
wrote a new $summary; old one was "kprinter does not recognize CUPS printer instances and their options (~/.cups/lpoptions)".


More information about the Kde-print-devel mailing list