From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Idea: guix printer configuration generation Date: Thu, 17 Jan 2019 13:08:21 +0100 Message-ID: References: <94845DC3-751F-4D99-A0E2-62A3A9BF9CCB@pretty.Easy.privacy> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gk6TU-0006i4-JF for guix-devel@gnu.org; Thu, 17 Jan 2019 07:08:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gk6TR-0002On-TE for guix-devel@gnu.org; Thu, 17 Jan 2019 07:08:44 -0500 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:40562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gk6TR-0002Ky-Jc for guix-devel@gnu.org; Thu, 17 Jan 2019 07:08:41 -0500 Received: by mail-io1-xd2e.google.com with SMTP id k2so7599299iog.7 for ; Thu, 17 Jan 2019 04:08:34 -0800 (PST) In-Reply-To: <94845DC3-751F-4D99-A0E2-62A3A9BF9CCB@pretty.Easy.privacy> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia Cc: guix-devel Hello, swedebugia ezt =C3=ADrta (id=C5=91pont: 2019. jan. = 17., Cs, 8:22): > > "G=C3=A1bor Boskovits" skrev: (16 januari 2019 16:0= 0:30 CET) > >Hello, > > > > ezt =C3=ADrta (id=C5=91pont: 2019. jan. 16., Sze= , 15:35): > >> > >> Hi > >> > >> I would rather not have to learn the CUPS web interface just to > >> configure my printer. Do we have a way to do this yet from > >config.scm? I > >> think we should abstract away everything CUPS. > >> > >> Maybe we could make a guix printer importer? > >> > >> The idea is to extract information about the printer via Guile and > >print > >> what the user need to add to the config.scm. > >> > >> Something like this: > >> $ guix printer > >> > >> "Found 1 USB printer: HP DeskJet 4330 > >> (cups-configuration > >> (printer > >> (name "HP DeskJet 4330" > >> (connection "usb://34234556" > >> (settings > >> (paper "a4" > >> (source "default" > >> ..." > >> > >> When the user adds this to their config.scm and reconfigures the > >printer > >> JUST WORKS. > >> > >> Thoughts? > >> > >> -- > >> Cheers > >> Swedebugia > >> > > > >I've found the CUPS config stuff somewhat problematic. > >The config file is generated from another config file, and some other > >things, that trigger > >regenerating the config. Sometimes even the printer ink level is > >regenerating cups configs, > >which is really annoying. Modifying files in /etc is not a very nice > >way to handle that indeed. > >The problem is known upstream, and seems to be won't fix. If we could > >get around that in any sane way, > >I would be very happy. > > > >Best regards, > >g_bor > > I did not understand what you meant. Does the cups server regenerate you = printer config automatically? > Have a look at this upstream issue: https://github.com/apple/cups/issues/30= 67 It keeps coming up again and again, and stated it won't be fixed again and again... The main problem seems to be, that state and config is mixed in the config files. > I'm surprised nobody forked the CUPS project long ago. Maybe this should = be a high priority for GNU? > -- > Sent from my p=E2=89=A1p for Android. Best regards, g_bor