guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Idea: guix printer configuration generation


From: Gábor Boskovits
Subject: Re: Idea: guix printer configuration generation
Date: Thu, 17 Jan 2019 13:08:21 +0100

Hello,

swedebugia <address@hidden> ezt írta (időpont: 2019. jan. 17., Cs, 8:22):
>
> "Gábor Boskovits" <address@hidden> skrev: (16 januari 2019 16:00:30 CET)
> >Hello,
> >
> ><address@hidden> ezt írta (időpont: 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/3067
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≡p for Android.

Best regards,
g_bor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]