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 525185 - Make paper size persistent for printing
Make paper size persistent for printing
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: printing
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 479874 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-30 20:36 UTC by Sven Arvidsson
Modified: 2009-05-27 10:35 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Patch for fix for 2.22 version of evince. (16.39 KB, patch)
2009-05-27 10:35 UTC, Darren Kenny
none Details | Review

Description Sven Arvidsson 2008-03-30 20:36:25 UTC
As mentioned in bug 349102, Evince remembers most print settings, but not the paper size, it's always the default taken from the users locale.
Comment 1 Christof Krüger 2008-06-07 12:32:18 UTC
Please note the discussion in this thread: https://answers.launchpad.net/ubuntu/+source/evince/+question/6846

I'm living in Germany but I'm using the en_US.UTF-8 locale.  The standard paper size here is A4 and 

grep "DefaultPageSize" /etc/cups/ppd/*.ppd

  /etc/cups/ppd/DESKJET_970C.ppd:*DefaultPageSize: A4
  /etc/cups/ppd/PDF.ppd:*DefaultPageSize: A4

Nevertheless, evince doesn't respect this and defaults to "US Letter" every time I open a document.  Changing this in "print setup" doesn't persist over two evince sessions.

The solution proposed in the aforementioned thread is to set LC_PAPER to "en_GB.UTF-8".  However, the average user will not be able to guess this solution.

Two things should be addressed:

1.  Choosing a better default value.  If all printers are configured to use A4 as the default paper size, evince shouldn't default to a value derived from LC_PAPER.
2.  If the user changes the paper size in the print setup, save this setting for the next time.  Maybe add a checkbox "make default" or something similar.
Comment 2 John Keller 2008-11-24 09:44:12 UTC
(In reply to comment #1)
> I'm living in Germany but I'm using the en_US.UTF-8 locale.  The standard paper
> size here is A4 and 

Similar situation for me: I'm in France, and use the en_US.UTF-8 locale.
Comment 3 Carlos Garcia Campos 2008-12-29 10:28:23 UTC
It's fixed in svn trunk now. 
Comment 4 Carlos Garcia Campos 2008-12-29 10:30:10 UTC
*** Bug 479874 has been marked as a duplicate of this bug. ***
Comment 5 Darren Kenny 2009-05-27 10:35:17 UTC
Created attachment 135427 [details] [review]
Patch for fix for 2.22 version of evince.

I'm attaching a version of this fix for Evince 2.22 since it might be of use for some distros not using the latest evince. 

It would be good to get this applied to the 2.22 branch too, if possible...