← Back to team overview

qpdfview team mailing list archive

Re: [Question #267869]: Can't launch qpdfview with --unique parameter

 

Question #267869 on qpdfview changed:
https://answers.launchpad.net/qpdfview/+question/267869

    Status: Open => Answered

Adam Reichold proposed the following answer:
Hello ralphl,

the '--unique' command-line option make qpdfview behave as a unique
application, i.e. there will only be a single main window and every
invocation will either instantiate that window or act upon it remotely.
(There are several examples how this together with named instances can
be used on the man page.) The default launcher used to not include this,
but more people seem prefer the unique behaviour with every document
opened via e.g. the file manager creating a tab instead of a new window.
Hence we changed it.

In the background this works using D-Bus meaning that qpdfview registers
on the session bus if no other instance has yet registered itself there.
If so, the application connects to that already running instance, drops
its requests (e.g. to open or refresh some file) and exits. If it does
not work at all, there could be a D-Bus problem which should be able to
diagnose by running qpdfview using a terminal which should give you
access to the D-Bus error messages if there are any. If you could paste
those here, maybe we can find a solution to the observed issue.

Best regards, Adam.

-- 
You received this question notification because you are a member of
qpdfview, which is an answer contact for qpdfview.