[Okular-devel] [okular] [Bug 352657] New: Synctex: synchronization between PDF viewer (okular) and text editor (kate) doesn't work in current version of okular
Frederic Tronel
bugreport at tronel.org
Sun Sep 13 11:43:23 UTC 2015
https://bugs.kde.org/show_bug.cgi?id=352657
Bug ID: 352657
Summary: Synctex: synchronization between PDF viewer (okular)
and text editor (kate) doesn't work in current version
of okular
Product: okular
Version: 0.23.0
Platform: Debian unstable
OS: Linux
Status: UNCONFIRMED
Severity: minor
Priority: NOR
Component: general
Assignee: okular-devel at kde.org
Reporter: bugreport at tronel.org
Synctex: synchronization between PDF viewer (okular) and text editor (kate)
doesn't work in current version of okular.
The bug is due to a change of the parameters accepted by kate.
kate used to accept the "--use" option. This option has disappeared.
When configured with kate in the editor settings, okular still calls kate by
passing the
"--use" option.
This should be changed (the "--use" option is now implicit).
I have attached a patch.
Reproducible: Always
Steps to Reproduce:
1. Compile a Latex document with pdflatex and activate synctex (e.g. put a
\synctex=1 in the preamble of the document).
2. Open the resulting PDF with okular.
3. Configure okular so that it uses "kate" as editor ("Settings -> Configure
Okular -> Editor -> Kate).
4. Left mouse button + shift in any part of document should launch a instance
of kate to edit the corresponding .tex document.
5. With the current version of okular, nothing happens.
6. On the console a "--use unknown option" message appears.
Actual Results:
With the current version of okular, nothing happens.
On the console a "--use unknown option" message appears.
Expected Results:
Kate should be launched.
Apply the following patch:
diff --git a/conf/okular_core.kcfg b/conf/okular_core.kcfg
index 054b5c1..35aaa9d 100644
--- a/conf/okular_core.kcfg
+++ b/conf/okular_core.kcfg
@@ -76,7 +76,7 @@
</choices>
</entry>
<entry key="ExternalEditorCommand" type="String">
- <default>kate --use --line %l --column %c</default>
+ <default>kate --line %l --column %c</default>
</entry>
</group>
<group name="Core Presentation" >
diff --git a/core/texteditors_p.h b/core/texteditors_p.h
index 026d344..e41084d 100644
--- a/core/texteditors_p.h
+++ b/core/texteditors_p.h
@@ -22,7 +22,7 @@ static inline QHash< int, QString > buildEditorsMap()
{
QHash< int, QString > editors;
editors.insert( SettingsCore::EnumExternalEditor::Kate,
- QString::fromLatin1( "kate --use --line %l --column %c" ) );
+ QString::fromLatin1( "kate --line %l --column %c" ) );
editors.insert( SettingsCore::EnumExternalEditor::Kile,
QString::fromLatin1( "kile --line %l" ) );
editors.insert( SettingsCore::EnumExternalEditor::Scite,
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list