Bug 425597 - Annotation Toolbar not shown
Summary: Annotation Toolbar not shown
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 427463 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-08-20 15:38 UTC by Martin
Modified: 2020-10-10 08:03 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Problematic config file (3.83 KB, application/vnd.kde.kxmlguirc)
2020-09-09 20:48 UTC, Brendon Higgins
Details
configuartion file causing the bug (3.74 KB, application/vnd.kde.kxmlguirc)
2020-10-10 08:03 UTC, hafid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2020-08-20 15:38:31 UTC
SUMMARY

In Okular 1.11.0 under Arch Linux no annotation toolbar is shown, even when pressing F6. The menu item changes from selected to not selected, but the toolbar it self does not appear.

KDE Frameworks 5.73.0
Qt 5.15.0 (built against 5.15.0)
The xcb windowing system

STEPS TO REPRODUCE
1. Open pdf
2. Enable Browse Tool
3. Press F6 to show annotation toolbar

OBSERVED RESULT
No annotation toolbar appears

EXPECTED RESULT
Annotation toolbar appears


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2020-08-20 15:46:47 UTC
Can you double check it's not appearing on the right of the "normal" toolbar?
Comment 2 Martin 2020-08-20 16:11:43 UTC
No it is not. The problem is also that in the menu action for showing and hiding only the rectangle is visible, but not "Annotation Toolbar" (Next to the action to show and hide the main toolbar). In the flatpak package it is fine. It is hard to make a screenshot of a menu action.
Comment 3 Albert Astals Cid 2020-08-20 22:50:37 UTC
(In reply to Martin from comment #2)
> In the flatpak package it is
> fine. It is hard to make a screenshot of a menu action.

Just set spectacle to take the screenshot with N seconds of delay?
Comment 4 Simone Gaiarin 2020-08-24 08:35:41 UTC
Could you also try to remove the files in '.local/share/kxmlgui5/okular/' (if any), restart okular, and see if the toolbar is shown?
Comment 5 Martin 2020-08-24 17:42:47 UTC
Seems to fix the problem. Thank you!
Comment 6 Simone Gaiarin 2020-08-25 07:26:08 UTC
If you still have the original configuration files can you attach them here?
If not, do you remember the name of the files that were in that folder?
Comment 7 Brendon Higgins 2020-09-09 20:48:55 UTC
Created attachment 131522 [details]
Problematic config file

I just hit this issue on a Debian Testing system. My .local/share/kxmlgui5/okular/ folder only has a part.rc file, which I've attached.

I tried removing that file. The new toolbar looks somewhat different to what it used to, but the annotation tools are now accessible (no longer as a side-bar, I see).
Comment 8 Simone Gaiarin 2020-09-10 09:00:30 UTC
The file .local/share/kxmlgui5/okular/part.rc is automatically deleted if its version is < 47 (i.e. the version where the annotation toolbar has been added). If Okular was tested from master in a certain period (between the merge of !105 and !207) there was the possibility to end up in this situation were the version is updated to 47 without the file being deleted. This should not happen again now.
Comment 9 Albert Astals Cid 2020-09-10 18:10:22 UTC
Brendon, did you use some pre-release code of okular compiled it by yourself or using maybe the Neon dev edition?
Comment 10 Brendon Higgins 2020-09-10 19:05:09 UTC
I use Debian's official packages. Sometimes I install newer versions from unstable, but usually I just stick with testing. Either way, I doubt Debian pulls from unreleased versions for KDE packages, generally speaking... though, to be fair, I can't say for certain.

TLDR: Not that I'm aware of.
Comment 11 Simone Gaiarin 2020-10-10 07:18:27 UTC
*** Bug 427463 has been marked as a duplicate of this bug. ***
Comment 12 hafid 2020-10-10 08:03:57 UTC
Created attachment 132256 [details]
configuartion file causing the bug