18

I have Ubuntu 12.04.5 LTS installed on my computer.

If I open PDF in Evince for the first time, the window is always un-maximized and zoom level is 70%. I want Evince to be maximized and the zoom level set to 100% every time I open a PDF.

I have tried to adjust the settings and clicked "Save Current Settings as Default" but when I open a new PDF, Evince is un-maximized and zoom level is 70%.

How can I get Evince to open maximized and with zoom level 100%?

user396147
  • 181
  • 1
  • 3

5 Answers5

9

Check

gsettings get org.gnome.Evince zoom

if it is not set to 1.0. See

gsettings list-recursively org.gnome.Evince

for all settings.

axm
  • 446
8

In my case I wanted it to always open documents at 150% by default, so here's what I found out that worked for me (I'm using Evince v3.22.1):

gsettings set org.gnome.Evince.Default zoom 1.5
gsettings set org.gnome.Evince.Default sizing-mode free

(I got the hint for the default zoom setting from here: https://askubuntu.com/a/214163/163034)

Márcio
  • 181
3

To start, Evince maximized on x11 (echo $XDG_SESSION_TYPE):

  1. Install devilspie package (find windows and perform actions on them):

    sudo apt install devilspie

  2. Create ~/.devilspie folder and evince.ds file in that folder:

    mkdir -p ~/.devilspie && touch ~/.devilspie/evince.ds

  3. Paste this code in ~/.devilspie/evince.ds file:

    (if
        (is (application_name) "Document Viewer")
        (begin
           (maximize)
        )
    )
    
  4. Add devilspie to Startup Applications

  5. Reboot.

Documentation


Pablo Bianchi
  • 17,371
grisfer
  • 535
2

To start Evince fullscreen as default, paste following command line :

gsettings set org.gnome.Evince.Default fullscreen true
vanadium
  • 97,564
Tse
  • 29
0

Possible workaround (Debian 9 with Xfce Desktop Environment, ver. 4.12):

In the /usr/share/applications/evince.desktop file, comment out the existing Exec=... line and replace with:

Exec=sh -c '(sleep 0.6 && wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz)& evince "$@"' sh %U

FYI, while this will still open groups of files together (e.g. via clicking on a block of files in Thunar), only one of the thusly opened files will be so maximized.

Pablo Bianchi
  • 17,371
Digger
  • 176