You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When asked for the default printer, always
query and return the current CUPS default
printer instead of whatever was the default
last time this was done, to take into account
that the CUPS default printer can change while
the backend is running.
Sample steps (without this commit in place)
to reproduce an incorrect default
printer being returned with cpdb-text-frontend
from cpdb-libs, when the PDF printer is initially
set as default:
Run cpdb-text-frontend:
$ cpdb-text-frontend
Query for the default printer
> get-default-printer
PDF#CUPS
Now, switch the CUPS user default printer
to another one:
$ lpoptions -d somedummy
In the running cpdb-text-frontend instance,
query the default printer again:
> get-default-printer
PDF#CUPS
-> The outdated/previous default printer was returned.
With this commit in place, the new default
printer is now returned as expected:
> get-default-printer
somedummy#CUPS
(This addresses part of issue 3) from comment [1] on
the pending change to update CPDB support in LibreOffice.)
[1] https://gerrit.libreoffice.org/c/core/+/169617/comments/3ef76e40_4f120b66
0 commit comments