How to reproduce this: * Have tabs enabled * Be in directory "a" * Run "okular somefile.pdf" * Go to directory "b" * Run "okular someotherfile.pdf" * Opening of this second file will fail
This is also a problem when viewing LaTeX output using Kile, since it uses relative paths. I think this goes wrong in root/shell/main.cpp:108: // Returns false if it can't fit another document const QDBusReply<bool> reply = bestService->call( "openDocument", arg ); Here the (relative) file name is given as an argument to the running instance of Okular, that has another working directory. I guess that the file name has to be made absolute before calling openDocument.
Jonathan any chance we can get a fix for this for 4.14.0 (tagging in one week)?
Thanks for the tip, Willem. The patch is posted.
Git commit 50f2019f8b7112103a1c9191437c81720bd3926a by Albert Astals Cid. Committed on 03/08/2014 at 00:04. Pushed by aacid into branch 'KDE/4.14'. Pass absolute urls Patch pased on patch by Jonathan Doman based in a suggstion of willemsonke@planet.nl REVIEW: 119550 FIXED-IN: 4.14.0 M +4 -0 shell/main.cpp http://commits.kde.org/okular/50f2019f8b7112103a1c9191437c81720bd3926a