Description of problem: Clearing the default printer doesn't work. Version-Release number of selected component (if applicable): 2.4.6-1.mga9 How reproducible: Always Steps to Reproduce: 1. Go into mcc, set up the printers. Make sure there are multiple printers (duplicate one of them if you have to) 2. Right-click one that is not the default, and "Set as my personal default printer" 3. cat /etc/cups/lpoptions shows the printer selected. 4. Right-click another one and pick "Set as the system wide default printer". Notice that "Clear my personal default setting" is checked (with the text greyed out). 5. Click OK. 6. cat/etc/cups/lpoptions shows that it did *not* clear your personal default setting. Trying to use a command like lpq confirms that the personal default setting is still being used. Obviously I have no idea if this is a problem with printers in general or just a specific one. I'm hoping that it's a general enough problem that it can be reproduced by someone else.
Correction: The lpoptions is not the only place that the default printer is stored. However, you can confirm the problem by using lpq rather than catting lpoptions; it will make clear which printer the system considers to be the default.
Thank you for the report. Need to check, no time as I write. It looks as if you expect a system wide default printer to clear personal default printer. The problem might be that dialogue : "Clear my personal default setting" is checked (with the text greyed out). The option makes sense if you want to keep the user's default despite a system wide different default. This dialogue option is not working; because it is greyed? It would be correct for a user's personal default printer to have priority over a system default (applicable to users without their own). The nub of the matter looks to be whether the "Clear my personal default setting" checkbox is active - and heeded - or greyed - and ignored. The fact that it does not apply (the complaint) implies that it is not heeded when nominating a system wide default, when the user doing that has his own default printer; the result of being greyed?
CC: (none) => lewyssmith
It's greyed *and* checked. Maybe it shouldn't be checked.
Created attachment 13987 [details] The 'set as default' dialogue This is the dialogue in question. It seems invariant whatever are the current personal &/or default printers. The greyed checkbox & caption seem inoperative in all cases. I got into a mess nominating different personal & default printers. To start with, my normal USB connected printer NOT switched on had the 'set as default' menu option greyed; it appeared correctly after turning it on. In particular, having got a printer defaulted, I could not change that to another one. It does indeed seem to get stuck on what you first defined, indicated as noted by: $ lpq or $ cat /etc/cups/lpoptions which file exists only after nominating a default. Prior to that (no defaults defined), lpq showed the USB printer, whether on or off. The lack of 'default' information per printer is unhelpful - either in the context menu [this is set as xxx default] or the 'set default' dialogue, which should certainly indicate the current status quo for that printer. Nothing indicates whether the one you select is noted as your personal or system default; you always start from scratch. Nor do you seem to be able to remove default declarations. All this was done in one login session. I shall try logging out/in, later re-booting, to see whether that hs an effect. And only add here if it does so.
On my system it works i think. This system is a fresh install from mga9 beta2 install ISO + updates then and after. I have four "printers": two real on network, two "virtual: Boomaga, and CUPS-PDF. Have not used USB connection to printer this millenia. Prior to my tests there was no /etc/cups/lpoptions I set Boomaga as system default, then $ lpq Boomaga is ready no entries I set M:Svartvit as system default, then $ lpq M:Svartvit is ready no entries And still no /etc/cups/lpoptions In MCC Printers I can right click any, select as default, (except that option is not on the one I have already selected as system default. I can still set another one than the system default, as my personal default - selecting it again i assumed that option to be preselected to show it is my personal default but it is NOT - but it do work: i see Okular obeys what i last set as my personal default. The checkbox in that dialogue is always grey and checked. And yes, what system default should do is really to set all users default, not? How should it else work? I have found that /etc/cups/lpoptions gets created/updated by setting a printer as *personal default. This seem very backwards, to have user setting stored in /etc ! Setting system default printer have no effect when /etc/cups/lpoptions exist. The catch is say you set printer A as system default (works), then B as user default (works) then try to select A as user default: bad luck - that right click menu entry is greyed out... Workaround: Set B as system default, then A as user default. (note setting it as system default does not work) Tested with Okular, and lpq occasionally. Another workaround is to remove /etc/cups/lpoptions and never set personal default printer, only system default (defauilt choice in dialogue) A third is to create a "printer" you never use, have that as system default, so that is the only printer with greyed out right click menu for default setting - and set other printer as default by choosing them as personal default. Our tool do stupid things. Obviously at least: § setting/creating a file in /etc for user default (and it does not tell which user) § blocking selection (see workarounds above) § Missing indication to user which is currently chosen as default ------ Sidenotes: Directly launching system-config-printer as user, commands in right click menu are greyed out. Even though it asks for credentials when launching. So some other bug there. Launching through sudo works. Or mcc the normal way. I have a faint memory of that in the past the printer icon set as default had some graphical marking on it to tell so. There is none now! (Optimally there should be different markings for system and personal default.) For this bug headline: I don't understand how a cleared default is supposed to work, *some* printer need be selected... no? Printer dialogues in some programs like Firefox remember last used printer in that program separately it seems.
Source RPM: cups-2.4.6-1.mga9.src.rpm => system-config-printer-1.5.18-1.mga9.src.rpmCC: (none) => friKeywords: (none) => FOR_ERRATA9Assignee: bugsquad => mageiatools
Summary: Clearing default printer doesn't work => Issues setting default printer
https://wiki.mageia.org/en/Mageia_9_Errata#Printing {{Bug|32270}} - '''Issues setting default printer.''' Setting printers as system default works with no problem. ({{prog|Mageia Control Center}} Section {{menu|Hardware > Printing}} right click a printer...) The problem: If you once have set a printer as personal default, the file {{file|/etc/cups/lpoptions}} is created and updated by any new personal default printer. Problem is that the option to select default printer is greyed out in the menu on the printer that is set as system default, so you can not set it as personal default. '''Workarounds: 1.)''' Delete /etc/cups/lpoptions '''2.)''' Select another printer as system default, so you can select the printer you want as your personal default. Sidenote: Some programs have built-in printer dialogues that seem not to respect defaults.
Keywords: FOR_ERRATA9 => IN_ERRATA9
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=32500