Summary: | Printer Settings should be saved under user profile, not global CUPS configuration | ||
---|---|---|---|
Product: | [Frameworks and Libraries] print-manager | Reporter: | Angel Docampo <docampo.angel> |
Component: | general | Assignee: | Daniel Nicoletti <dantti12> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | aacid, docampo.angel |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Per user settings override global settings. |
Description
Angel Docampo
2018-06-26 10:06:46 UTC
print-manager doesn't touch any files by it's own, it only talks CUPS protocol, which is what other desktops also do, I won't even try to write changes to local user because that is likely to break since CUPS doesn't provide any API for that. I might accept a patch for this if this does look good. But most distros already have the main user as root so that you don't get prompted, and speaking of corporate CUPS process is so small that you usually will be talking to CUPS on your own machine. Created attachment 113621 [details]
Per user settings override global settings.
I would love to provide a patch but I can't because I'm not a developer, and I didn't see the code, but CUPS provide some utilities (lpoptions, lpq, lpstat, lpadmin, and so) which modify the user's printers, without the need to be superuser or root. You need (by default) to be root to add new printers, but CUPS let the user set the default settings for each printer.
If you see the attachment, you'll see how I had set the default printer with `lpoptions -d printername` it will set printername as my user's default printer, ignoring the settings I have on the print-manager -kate shows my user's default printer, not the system printer shown on print-manager- as it doesn't look at the user's configuration, but the global's one.
I think both home and enterprise users would benefit if print-manager looks onto user's settings to set the printer preferences.
First let me better explain why I'm not going to fix this, I work on free time, so my free time is precious, if this was a bug that crashed the software or make it misbehave I'd surely fix it, but this is a FEATURE that I don't use, and that CUPS AFAIK doesn't have any API to dealing with it, which means if I add this feature and CUPS change the way it behaves tomorrow I'll have new bugs to fix. Having a command line tool that does the job doesn't guarantee any stability as the options might change breaking code at run time.
>I would love to provide a patch but I can't because I'm not a developer
If you are not a developer but is speaking in the name of a company you can pay one to do it, even me as I do freelances. As I said before if the patch looks good I might accept even with the breaks risk as I DO understand this is a nice feature to have, but not one I'll use so I prefer to spend my time on other stuff...
Thank you Daniel for your fast answer and kind words. I will tell what you say to whom may concern. |