Where does Okular store its config files?
Solution 1:
As you've found, neither ~/.config/okularpartrc
nor ~/.config/okularrc
store information relating to changes made to the main toolbar.
Here's an image of the toolbar I have before adding a couple of buttons:
I then used the GUI found in Settings
> Configure Toolbars
to add a couple of buttons (outlined in red) as seen below:
I found that these changes were recorded in ~/.local/share/kxmlgui5/okular/shell.rc
, in Kubuntu 18.04.
On running diff
on shell.rc
before and after the changes I get:
$ diff 0shell.rc 1shell.rc
24a25
> <Separator weakSeparator="1"/>
58a60,61
> <Action name="help_contents"/>
> <Action name="help_about_kde"/>
$
Of course, the line numbers maybe different on your system.
You've mentioned that copying the entire home folder doesn't help and I would assume that ~/.local/share/kxmlgui5/okular/shell.rc
would be copied as well in which case you should have been able to carry over the changes. It's possible that something else is required but I don't know what that would be.
Edit: I just installed okular
on Lubuntu 18.04. The same file, ~/.local/share/kxmlgui5/okular/shell.rc
, exists there as well.
Solution 2:
By defining some marker pens and applying sudo find . -atime -1 -type f > ~/q
and searching in the result file /q
for all occurrences of "okular" I finally found this file for a snap-installed Okular Version 1.7.2 on Xubuntu 18.04, which had the proper atime-stamp:
~/snap/okular/63/.config/okularpartrc
It is a printable file. All annotation marker pen definitions follow the heading
[Reviews]
AnnotationTools=
and follow e.g. this pattern
<tool name="rot 25" id="5" type="highlight"><engine color="#ffff0000" type="TextSelector"><annotation color="#ffff0000" type="Highlight" opacity="0.25"/></engine><shortcut>5</shortcut></tool>