You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reasons, if I launch (for example from command-line) twice atril on the same document, the second instance does not open the same document in a new window, but instead the first window is shown.
Expected behaviour
It would be nice to have two windows (or at least to have an option to do so).
Actual behaviour
A document opened a second time activates the first instance window.
Steps to reproduce the behaviour
$ atril foo.pdf &
$ atril foo.pdf &
Atril version: 1.26.0 on Xubuntu 22.10.
Workaround
Launch atril on a copy of the document.
The text was updated successfully, but these errors were encountered:
This was most likely an intentional decision made by Evince developers long prior to the MATE fork.
Libunique was used to force all invocations to one instance, today GtkApplication is used for that
purpose.
This was most likely an intentional decision made by Evince developers long prior to the MATE fork. Libunique was used to force all invocations to one instance, today GtkApplication is used for that purpose.
I am not sure to understand what you say : Launching two atril on different files shows 3 processes: atrild and 2 x atril, and there are two windows.
The issue I am referring to is only about opening the same file twice.
Did some digging and some testing
Commit
15073fb
ports atril from libunique to GtkApplication, both of these are normally used to
confine all threads and windows of a process to a single process. Note that
GtkApplication can be deliberately set to allow multiple instances and on testing
it appears this was done, as on opening two different files I get two instances of
atril listed in mate-system-monitor.
Thus I do not know what is going on in your case
For some reasons, if I launch (for example from command-line) twice atril on the same document, the second instance does not open the same document in a new window, but instead the first window is shown.
Expected behaviour
It would be nice to have two windows (or at least to have an option to do so).
Actual behaviour
A document opened a second time activates the first instance window.
Steps to reproduce the behaviour
Atril version: 1.26.0 on Xubuntu 22.10.
Workaround
Launch atril on a copy of the document.
The text was updated successfully, but these errors were encountered: