Bug 254917 - --unique option precludes --page option if okular is already running
Summary: --unique option precludes --page option if okular is already running
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.11.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 02:05 UTC by Alexey Bakhirkin
Modified: 2011-01-30 17:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.6.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Bakhirkin 2010-10-22 02:05:31 UTC
Version:           0.11.2 (using KDE 4.5.2) 
OS:                Linux

I use okular as a pdf viewer for emacs+auctex and run it as "okular --unique --page n document.pdf". If okular is already running I'd expect it to switch to the specified document and page. But it won't. Instead it either jumps to the first page or just stays on the current one.

Reproducible: Always

Steps to Reproduce:
1. Run "okular --unique --page n document.pdf"
2. Run "okular --unique --page m document.pdf"

Actual Results:  
Okular stays on page n.

Expected Results:  
Okular switches to page m.
Comment 1 Tassilo Horn 2010-11-11 15:04:48 UTC
I can confirm that bug, but there's a even better variant for the forward search than using the -p option that already works.  Use this definition in your .emacs:

(setq TeX-view-program-list
    '(("Okular"
       ("okular --unique %o"
	       (mode-io-correlate "#src:%n%b")))))
Comment 2 Albert Astals Cid 2011-01-30 17:43:13 UTC
SVN commit 1218022 by aacid:

Obey the page argument when using the unique option
Patch by Victor Blazquez
BUGS: 254917


 M  +3 -0      main.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1218022