After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748549 - remember printing options
remember printing options
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: printing
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-27 19:06 UTC by J. Fiol
Modified: 2018-05-22 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shell: Never save n-copies in the print-settings file (1.48 KB, patch)
2015-04-28 03:18 UTC, José Aliste
committed Details | Review

Description J. Fiol 2015-04-27 19:06:47 UTC
This is essentially a duplicate of Bug 488806. 
Evince is remembering the number of copies printed from one document to the next.
It was solved in 2007 (version 2.20) but I am seeing the same problem in version 3.14.2 in gentoo
Comment 1 José Aliste 2015-04-28 01:29:24 UTC
mmm. could you please see if this happens with 3.14.1? I fixed another bug and probably introduced this regression in 3.14.2. If you can confirm that it works on 3.14.1 then I will be more certain about that.
Comment 2 José Aliste 2015-04-28 02:28:41 UTC
so indeed my patch reverts a part of the patch in bug 488806. Reverting https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=51d44a9c55b55531fd85def559d237ed4685bab3

should work for you for the time being.
Comment 3 José Aliste 2015-04-28 03:18:27 UTC
Created attachment 302495 [details] [review]
shell: Never save n-copies in the print-settings file

By default gtk_print_settings_to_key_file save all settings. When fixing
https://bugzilla.gnome.org/show_bug.cgi?id=696203 we re-introduced
https://bugzilla.gnome.org/show_bug.cgi?id=488806 for the number of copies.
This happens because the code that saves the document print settings in the evince
metadata deletes the document print settings from the key file. Thus,
the fix for bug #696203 is not stricty correct because we still
need to delete n-copies from the key_file. This patch fixes that.
Comment 4 José Aliste 2015-04-28 03:21:19 UTC
Please note that if you are experience this bug, evince patched with the patch in comment 3 will reset to "1" copy after you print once so it can resave the print settings key file. You can work around this by opening the file ~/.config/evince/print-settings and removing the line containing n-copies =
Comment 5 Carlos Garcia Campos 2015-04-28 10:18:36 UTC
Comment on attachment 302495 [details] [review]
shell: Never save n-copies in the print-settings file

Oops
Comment 6 José Aliste 2015-04-28 10:31:50 UTC
Review of attachment 302495 [details] [review]:

pushed to gnome-3-14, gnome-3-16 and master branches.
Comment 7 GNOME Infrastructure Team 2018-05-22 16:14:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/594.