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: Wed, 16 Jan 2019 16:00:30 +0100 Message-ID: References: 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]:35826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjmgO-00085h-K5 for guix-devel@gnu.org; Wed, 16 Jan 2019 10:00:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjmgN-0006bj-EC for guix-devel@gnu.org; Wed, 16 Jan 2019 10:00:44 -0500 Received: from mail-it1-x133.google.com ([2607:f8b0:4864:20::133]:40167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjmgN-0006Ww-4J for guix-devel@gnu.org; Wed, 16 Jan 2019 10:00:43 -0500 Received: by mail-it1-x133.google.com with SMTP id h193so3032392ita.5 for ; Wed, 16 Jan 2019 07:00:42 -0800 (PST) In-Reply-To: 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, ezt =C3=ADrta (id=C5=91pont: 2019. jan. 16., Sze, 1= 5: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