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 349102 - Persistent print settings
Persistent print settings
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: printing
0.5.x
Other All
: Normal minor
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 453803 538792 (view as bug list)
Depends on: 344515
Blocks:
 
 
Reported: 2006-07-28 16:04 UTC by Juanjo Garcia-Ripoll
Modified: 2008-12-29 10:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Juanjo Garcia-Ripoll 2006-07-28 16:04:16 UTC
The printer settings are only "remembered" when two instances of evince are runnning. Otherwise, they are forgotten. This affects the selected printer, paper type, layout, etc. I would like this information to be remembered by the application and also shared between applications

Other information:
Comment 1 Nickolay V. Shmyrev 2006-08-04 23:49:16 UTC
Strange, it should work. Is this bug about sharing settings between evince and other application? Looks like it's a problem, but I wonder if new gtk printing framework allows print configs.
Comment 2 Carlos Garcia Campos 2006-08-05 10:59:55 UTC
Juanjo: 
are you using evince from head and gtk+ >= 2.10? 

Nickolay:
the new gtk printing system doesn't implement serialising/deserialising settings yet (see bug #344515). However it's easy to implement with the current API. I'm just waiting for such a feature in gtk+ because it will be used also to pass the settings from gtk+ to evince when using it as previewer. So, I think it isn't worth to implement it for the moment. 
Comment 3 Christian Persch 2006-11-04 22:40:52 UTC
You can copy the code from epiphany, lib/ephy-print-utils.[ch], if you want.
Comment 4 Philip Ganchev 2007-04-15 10:17:26 UTC
I am using Evince 0.6.1 on Ubuntu Edgy, and for me the print settings are not remembered at all, not even when two Evince instances are running.
Comment 5 Carlos Garcia Campos 2007-05-08 16:41:19 UTC
Fixed in svn trunk. Print settings are remembered now by using the new GTK+ API (thanks chpe) when it's available. 

Thanks. 
Comment 6 Wouter Bolsterlee (uws) 2007-07-27 10:09:22 UTC
*** Bug 453803 has been marked as a duplicate of this bug. ***
Comment 7 Michael Cummings 2008-01-21 12:55:00 UTC
Not really fixed completely though - you've got *almost* all of the printer settings stored in printers.conf under ~/.gnome2/evince, but your missing the paper-setting override, and evince seems to favor a US Letter paper based solely on your LOCALE setting (eh, could have worked).

https://answers.launchpad.net/ubuntu/+source/evince/+question/6846

Thanks for an awesome pdf reader, we only nit pick the tiny details because the rest of it is all golden :)
Comment 8 Christian Persch 2008-01-24 12:48:19 UTC
Don't add comments to a closed bug, they'll get lost. File a new bug instead.
Comment 9 Wouter Bolsterlee (uws) 2008-04-11 13:40:31 UTC
From: Ghee Teo <Ghee.Teo@Sun.COM>
Subject: Why Page setup values not saved in Evince?
User-Agent: Thunderbird 2.0.0.6 (X11/20071119)
X-Spam-Status: No, score=-102.5 required=4.6 tests=AWL,BAYES_00,
        UNPARSEABLE_RELAY,USER_IN_WHITELIST autolearn=disabled
        version=3.1.7-deb

I have received a complaint from my colleague:

-----
I have another long-standing complaint about evince: Why does it
remember from one invocation to the next that I printed multiple copies
of a document, but it can't remember that I changed the paper size from
A4 to Letter? As far as I can see, useful behavior would be exactly the
opposite.

-----
Anyone know why the changes to the page size are not saved?
Thanks,

-Ghee
Comment 10 Nickolay V. Shmyrev 2008-06-17 17:34:15 UTC
*** Bug 538792 has been marked as a duplicate of this bug. ***
Comment 11 Nickolay V. Shmyrev 2008-06-17 17:34:52 UTC
Some settings are worth to forget
Comment 12 Nickolay V. Shmyrev 2008-09-16 06:38:53 UTC
*** Bug 552426 has been marked as a duplicate of this bug. ***
Comment 13 Nikolaus 2008-09-30 15:24:41 UTC
To make the "some settings are worth to forget" more concrete, here are some quotes from https://bugs.launchpad.net/ubuntu/+source/evince/+bug/154096

---snip---
Every time I use an application which makes use of the GtkPrint dialog, and I change the settings listed there, my choiches are remembered and reused for the next time I want to print.

This leds to some confusion in my opinion. For example, it happened to me to print a PDF in evince on a day, selecting it with two pages per sheet, and asking myself the next day (the following time I did printing in evince) why all my curriculum vitae where split in two.
Or, more frequently, print 10 copies of a leaflet, and then forget to check it for the next print which is a Shakespeare's complete novel, going to buy me a coffee, and return after half an hour with three or four spare copies of Macbeth. Not to count the problems the famigerate page selection options, expecially when you've to handle over your work to your colleagues during a meeting, and you discover too late you've got a lot of odd pages of your presentation, but no even-numbered one!

In short, it would be a sensible behaviour if evince or GtkPrint (I think the culprit is the second one, but feel free to correct me if I'm mistaken) would save my choiches across _any printing operation for the same document_ (until the document changes, or the application is closed) instead of _any printing operation for any document_.

If needed, a "Save as default options" button could be added to the printing dialog.

---snip---

I can confirm the same problem in evince 2.20.1 on Ubuntu 7.10 (I have not checked other applications). For me, the problem manifested itself as an inability to print a single-page EPS file. After some time, I discovered that this was because the print dialog was still set (from a previous document) to print the range of pages from 2-10! Clearly this makes no sense for a single-page document and this suggests that the application (evince) does not check that the settings in the print dialog are rational before presenting them to the user. Hence, this particular issue may be one for evince rather than gtk in general.


---snip---

I right now encountered this bug again, and I add my request to fix this bug. What happened to Andrew happened also to me: On a previous session I printed first the odd pages and then the even pages. Some time later, I tried to print a one-page document and it took me some while and frustration to realize that it didn't print because the "even pages" option was selected on a different tab and the document had no even pages.

Why not fix this bug? How hard should it be *not* to save options?

The solution is so simple: Options should be saved for a specific evince process, but not saved between them. If someone wants to change a default, he can go to print settings and change it there.
Comment 14 John Keller 2008-11-24 09:42:58 UTC
Bug 479874 and bug 525185 are more or less dups.

Using en_US.UTF-8 but living in France, it's very annoying and hardly logical to have what boils down to my language preference override 1) my printer ppd, 2) manually selected printer default, and 3) manually selected Evince setup.

And no, I don't expect that I should have to use en_FR, if only because I can't imagine that "make things simple" means "put the burden on the user to change his locale every time he's in a different country."
Comment 15 ombzzz 2008-11-26 12:21:02 UTC

Same problem here. Every time i print a document in evince i have to go to "print setup" and change paper type from "letter" to "A4".

Some data about my installation:

-------------------------
ubuntu version: Ubuntu Hardy

$ uname -a
Linux cad_sys12 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux

$ evince --version
GNOME evince 2.22.2

$ cat /etc/papersize
A4

$ echo $LANG
en_US.UTF-8

$ sudo system-config-printer dialog says

printer options, page size = A4
-------------------------

Please *fix* this ! it is very annoying 
Comment 16 Daniel Smith 2008-12-03 01:45:17 UTC
I have the other problem of defaulting to A4 when my printer is US Letter.  Why doesn't evince take the value of media from the lpoptions command?

$ uname -a
Linux porter 2.6.26-1-686 #1 SMP Thu Oct 9 15:18:09 UTC 2008 i686 GNU/Linux
(Debian/Testing)

$ evince --version
GNOME evince 2.22.2

$ lpoptions 
media=Letter sides=two-sided-long-edge finishings=3 copies=1 job-hold-until=no-hold job-priority=50 number-up=1 auth-info-required=none job-sheets=none,none printer-info='IBM Network Printer 17 (duplex laser)' printer-is-accepting-jobs=1 printer-is-shared=0 printer-location='E2-442 (Daniel's Office)' printer-make-and-model='Generic PostScript Printer Foomatic/Postscript (recommended)' printer-state=3 printer-state-change-time=1228266616 printer-state-reasons=none printer-type=2240540

$ echo $LANG $LC_ALL $LC_PAPER
en_US.UTF-8 POSIX letter

(Also tried with LC_PAPER as en_US.UTF-8 and en_US.UTF-8@letter and unset.)

$ cat /etc/papersize 
letter
Comment 17 Carlos Garcia Campos 2008-12-29 10:33:21 UTC
I've just applied a patch to svn trunk to remember the paper size and the other page setup settings. So I guess this bug can be closed now. Thank you all for your help.