Bug 254917

Summary: --unique option precludes --page option if okular is already running
Product: [Applications] okular Reporter: Alexey Bakhirkin <abakhirkin>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: tassilo
Priority: NOR    
Version: 0.11.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 4.6.1
Sentry Crash Report:

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