Bug 182313

Summary: qdbus-based reload document feature
Product: [Applications] okular Reporter: rusconi <listes.rusconi>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description rusconi 2009-01-29 16:14:42 UTC
Version:            (using KDE 4.2.0)
Installed from:    Compiled From Sources

Hello, as a heavy user of LaTeX, I like to edit my document in a text  editor and use a Makefile-base approach to .tex files' compilation and display as pdf-rendered files. 

I like the way I work with xpdf right now. By launching an xpdf process with the -remote "title" option, I can then access that specific process by "title" (see example below). When I compile my LaTeX sources into a pdf file, I can instruct the running xpdf process (which I identify with a title string) to reload the newly generated pdf file **only when the compilation successfully finished**.

To start xpdf:
==============

xpdf -remote "myfile-server" myfile.pdf &

To elicit a file reload:
========================

xpdf -remote "myfile-server" -reload


Would it be possible to setup such kind of system for okular which I'm eager to put into work in my workflow ?

Also, would it be possible to have the F5 (File->reload menu) feature callable from qdbus. I tried, but found that /okular/okular__Shell/actions/* does not contain the reload action. 

Thanks for listening.

Filippo
Comment 1 Pino Toscano 2009-01-29 16:22:07 UTC
$ qdbus org.kde.okular-<pid> /okular reload