Path: csiph.com!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 02 Dec 2022 22:43:49 +0000 Followup-To: alt.os.linux.mint,comp.os.linux.networking From: Scott Hemphill Newsgroups: alt.os.linux.mint,comp.os.linux.networking Subject: Re: printing multiple copies References: <2m5p5jxi01.ln2@Telcontar.valinor> Reply-To: hemphill@alumni.caltech.edu Date: Fri, 02 Dec 2022 17:42:57 -0500 Message-ID: <87lenp5swe.fsf@hemphills.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:/rWiB4YOe+IvkSI1RZycN6DAkJ4= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 64 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-1k4aNvbalV+AiSQB11HDRG5j1xI/Jz1s94oBrcievltZmpStv9e/iDaeI4/l1yXVTALTQncYMAPH6r/!oBlF6mJv5Pvn3vN2sjCOF9bFwTVcJrjMknxXcS8BiTiFkenY8EaC/8I= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: csiph.com alt.os.linux.mint:39548 comp.os.linux.networking:5203 "Carlos E.R." writes: > On 2022-12-01 16:55, Mike Scott wrote: >> On 01/12/2022 00:06, Paul wrote: >>> On 11/30/2022 2:10 PM, Mike Scott wrote: >>>> A long-standing and very annoying problem here. >>>> >>>> With the default .ppd file for my Brother printer, the number of >>>> copies is ignored (whether from the print dialogue or using 'lpr >>>> -#'. The fix is out there on the net - change "true" to "True" >>>> (could you make it up?) in the "cupsManualCopies" entry in the >>>> ppd. >>>> >>>> The only snag is that a new ppd arrives from out of the ether >>>> whenever cups restarts (eg boot time): any change only stays on >>>> manually installed printers. >>>> >>>> Is there a fix for this? I can't find where the ppd's are loaded >>>> from - can anyone help please? >> .....>    " >>> >>> That suggests a ModelNumber.ppd is coerced before being stored as >>> PrinterQueueName.ppd, >>> making it harder to trace where it came from. It could be put where >>> ever that is, >>> when the printer is manually installed, or perhaps when some >>> CUPS-specific software >>> gets an update. >>> >>> I would want to search the machine for all the PPD files, and see >>> if there >>> is a "pattern" to their naming, hinting at the best place to be reaching >>> in and adjusting them. >> >> >> Bit of serendipity earlier today. There's a program 'driverless' >> that generates ppd files. I ran this with strace -- it seems it >> picks up the ppd from the printer itself. So no chance of simply >> fixing the errant capital letter. I'm toying with the idea of >> renaming this, and writing a shell script with the same name to call >> the original and edit it appropriately. >> >> Either local software has changed to be more case-picky, or I'm >> remembering a previous printer when I say it "used to work". >> >> Thanks for replying. > > You should be able to report that as a Bug to your distribution. > > Otherwise, there are things you can try: > > Remove the "w" (write) permission of the file. Maybe make it inmutable. > > A cron job replaces it (don't bother with the edit). > > If you are using Apparmor, you can deny the permission to 'driverless' > for writing that particular file. How about a symbolic link? Scott -- Scott Hemphill hemphill@alumni.caltech.edu "This isn't flying. This is falling, with style." -- Buzz Lightyear