all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Wingo <wingo@igalia.com>
To: guix-devel@gnu.org
Subject: Re: [PATCH 3/3] gnu: Add CUPS service.
Date: Sat, 08 Oct 2016 10:37:57 +0200	[thread overview]
Message-ID: <cuc60p3utga.fsf@igalia.com> (raw)
In-Reply-To: <20161007202424.26732-3-wingo@igalia.com> (Andy Wingo's message of "Fri, 7 Oct 2016 22:24:24 +0200")

On Fri 07 Oct 2016 22:24, Andy Wingo <wingo@igalia.com> writes:

> * gnu/services/cups.scm: New file.
> * gnu/local.mk (GNU_SYSTEM_MODULES): Add gnu/services/cups.scm.
> * doc/guix.texi (Printing Services): New section.

With this, I can print :)

Status:

 * There are no foomatic PPD's, as we have not packaged foomatic yet.
   Once that's packaged I think an easy way to add them would be to
   simply add that package to the default value of the
   cups-configuration "extensions" field.  Or, make a service and add it
   to your services:

     (define (make-cups-extension name package)
       (service
        (service-type
          (name name)
          (extensions
           (list (service-extension cups-service-type identity))))
        package))))))

     (operating-system
       ...
       (services (cons (make-cups-extension 'foomatic foomatic) ...)))

   For now, cups-filters is the only extension installed by default.

 * (cups-service) should probably be added to the desktop-services.

 * The web interface is off by default; to turn it on you have to

     (cups-service
       (cups-configuration (web-interface? #t)))

   Probably should default to on, methinks.

 * I have tested adding a network printer via the web interface
   (http://localhost:631, also over https://localhost:631 if you add the
   self-signed cert exception), and printing to that printer.  Works, it
   seems.

 * However printing test pages doesn't work!  The way this works is that
   CUPS constructs a filter chain bannertopdf -> pdftopdf -> pdftoraster
   -> ... or something, and these are processes that are run
   sequentially, transforming a file.  Well bannertopdf isn't finding
   the needed PDF.  A bug.

 * The cups-filters change ends up causing the GTK's to rebuild, and
   this the graphical world.  Bummer.

I'll commit in a couple days if no objections.

Andy

  reply	other threads:[~2016-10-08  8:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 20:24 [PATCH 1/3] gnu: cups-filters: Look for test page in own output dir Andy Wingo
2016-10-07 20:24 ` [PATCH 2/3] gnu: cups-filters: Use ghostscript with CUPS driver Andy Wingo
2016-10-09 14:17   ` Ricardo Wurmus
2016-10-10 12:50   ` Ludovic Courtès
2016-10-07 20:24 ` [PATCH 3/3] gnu: Add CUPS service Andy Wingo
2016-10-08  8:37   ` Andy Wingo [this message]
2016-10-09 13:02     ` Christopher Allan Webber
2016-10-09 14:37   ` Ricardo Wurmus
2016-10-10  8:32   ` Clément Lassieur
2016-10-10  8:55     ` Andy Wingo
2016-10-10 21:00       ` Ludovic Courtès
2016-10-09 14:14 ` [PATCH 1/3] gnu: cups-filters: Look for test page in own output dir Ricardo Wurmus
  -- strict thread matches above, loose matches on Subject: below --
2016-10-10 13:29 Andy Wingo
2016-10-10 13:30 ` [PATCH 3/3] gnu: Add CUPS service Andy Wingo

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=cuc60p3utga.fsf@igalia.com \
    --to=wingo@igalia.com \
    --cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

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.