Open documents in separate windows

Asked by sojusnik

Hi,

is it currently possible to open at least two documents in a separate window, therefore not in tabs, as it's done now?

Best!

Question information

Language:
English Edit question
Status:
Solved
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Reichold
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Adam Reichold (adamreichold) said :
#1

Hello,

Yes, this is possible and there are several ways to do this. The fact that all documents are opened in a single window is due to the "--unique" command-line option being present in the default desktop file shipped with the program.

So you can for example copy "/usr/share/applications/qpdfview.desktop" into "~/.local/share/applications/" and change the command-line option. Or you can use to default desktop file to create a second one without the "--unique" command-line option to open documents in an independent window. A simpler thing to do is to just run the command "qpdfview" which should give you an independent window in any case.

There is also the possibility to use the "--unqiue" command-line option together with the "--instance" option to create "named instances", i.e. have several windows open and address them explicitly. For example, you could have two desktop files in your home folder executing "qpdfview --unique --instance foo %F" named "qpdfview (foo)" and "qpdfview --unique --instance bar %F" named "qpdfview (bar)" to use two instances and decide in which to open a specific file by choosing the corresponding desktop entry. Details on this can also be found in the manual page.

I hope this helps you to configure the program according to your needs. Best regards, Adam.

Revision history for this message
sojusnik (sojusnik) said :
#3

Would it be possible to have a document opened in another window after dragging a tab out of a window like Firefox does?

Revision history for this message
Best Adam Reichold (adamreichold) said :
#4

Technically, yes. But since different windows live in different processes, this would be rather complex to implement. More complex than I currently have the time to invest in the project. So you should not hold your breath.

Revision history for this message
sojusnik (sojusnik) said :
#5

Thanks Adam Reichold, that solved my question.

Revision history for this message
thinkpad (fellowsgarden) said :
#6

Personally, I'm very happy about the "--unique" setting; after all, anything else would defy the whole purpose of having a tabbed-interface... +1 on this Q & A for some helpful insights, though!