Skip to content

Draft patch for issue 316: adds an option to open a document in a new window,...

Draft patch for issue 316: adds an option to open a document in a new window, even if evince already has a window open for that document.

Closes #316

This is an updated version of the original patch for the current git version. Main changes:

  • The name of the option has been changed from "-o, --new window" to "-d, --duplicate-window" to avoid a conflict with an added option with the former name.
  • I've changed all the variable and function names, replacing "new" with "duplicate".

Review of rationale: if evince has document.pdf open, then running "evince document.pdf" in a terminal does not create a new window, but either moves focus to the new window, or seems to do nothing, depending on the window manager. This adds an option so that evince -d document.pdf will open a duplicate evince window, so there will now be two windows. This differs from the -o option which opens a new file browser view.

I have tested this patch on the version of evince in debian bookworm and trixie, it builds successfully for the current git version, but I've had problems installing that version to test it.

Merge request reports

Loading