How to open the same document in evince multiple times?
Solution 1
In evince you can use File --> Open a Copy to open another window showing the same file.
Solution 2
In Ubuntu 18.04 I found no "View in new window" but did find "Open a copy" under the "File Options" button on the far right. This opens a new instance. Later I found that you won't see the content until you scroll it.
Solution 3
There is no File menu in Ubuntu 18.04's Evince. The other options:
- Use Ctrl+N shortcut. It can be found in Keyboard Shortcuts with
- Keyboard Shortcuts in Alt menu options search
- Document Viewer -> Keyboard Shortcuts menu
- Use menu ☰ -> Open a Copy in the right upper angle, as in Rob's comment.
Solution 4
The accepted answer for this doesn't work for Evince anymore. To view the document multiple times in that program, select "View in new window" from the menu.
Solution 5
I don't like Evince's default behavior, so I clear the DBUS_SESSION_BUS_ADDRESS
environment variable before invoking it. This is my wrapper script, which I have in a directory that is before /usr/bin
in my $PATH
:
#!/usr/bin/env bash
set -e
declare -r EX_SOFTWARE=70
# Find the right Evince.
my_id=$(stat -c %d:%i -- "$0")
while IFS= read -r p; do
if [[ "$my_id" != "$(stat -c %d:%i -- "$p")" ]]; then
bin=$p
break
fi
done < <(type -ap evince)
[[ -z $bin ]] && exit $EX_SOFTWARE
setsid -f env DBUS_SESSION_BUS_ADDRESS= "$bin" "$@" &>/dev/null <&1
Related videos on Youtube
![Wauzl](https://i.stack.imgur.com/ZzYmN.jpg?s=256&g=1)
Wauzl
I like solving differential algebraic equations on Lie groups. Crazy enough, isn't it? I use the maths to understand it and FORTRAN to implement it and Matlab to analyze the results.
Updated on September 18, 2022Comments
-
Wauzl almost 2 years
I want to open a PDF file multiple times with evince. I want to do this to be able to look at different sections of the same file at the same time. Every time I try to open the file again, it only brings up the already opened evince window with my PDF file. I also tried to open a new evince window and then opening my file by using the menu of evince.
Is there any possibility to do this?
-
Wauzl about 10 yearsIn Ubuntu 14.04 the menu of Evince is patched to have the old menus. Nevertheless your answer is (probably) correct for everyone who does not use an old or patched version of Evince. Thank you!
-
antosecret over 7 yearsIt might be worth updating this answer with something specifying in which cases the accepted solution does not work (any other case besides ubuntu 14.04? Perhaps some old evince version?). Otherwise this seems contradictory and confusing.
-
Line over 5 yearsThanks a lot for this answer! :) I think the second sentence is completely redundant though.
-
Rob Rutten over 4 yearsI took that redundant sentence out then.
-
andybuckley over 3 yearsActually, this is great. I'm not sure without decoding quite what the rest of the wrapper is needed for, but a simple
DBUS_SESSION_BUS_ADDRESS= evince mydoc.pdf
works quite nicely for me. -
bombela almost 3 yearsterminated by signal SIGSEGV (Address boundary error) for MATE Document Viewer (atril) 1.24.0. It does try to open the GUI before the segfault too. Everything is bloated nowadays.