Bug 448354

Summary: "Configure kwrite" menu entry missing
Product: [Applications] kate Reporter: Michael D <nortexoid>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: christoph, mb
Priority: NOR    
Version: 21.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Missing "configure kwrite" menu entry
screenshot of the bug appearing
possible defective kwriteui.rc
screenshot with the kwriteui.rc in place
screenshot without the kwriteui.rc in place

Description Michael D 2022-01-13 10:46:23 UTC
Created attachment 145397 [details]
Missing "configure kwrite" menu entry

There was no is no longer an entry to configure kwrite in the menu bar. I've had this problem before with other katepart-based applications, e.g. Kile I think. See the attached screenshot.
Comment 1 Christoph Cullmann 2022-03-06 20:10:10 UTC
With 21.12.3 this works for me.

and

KDE Frameworks 
Version 5.91.0
Comment 2 Michael Büker 2022-08-21 20:37:48 UTC
I am seeing the same thing on Kubuntu 22.04, with kwrite 21.12.3 and KDE Framework 5.92.0.

This is why I am reopening this bug. Please advise on how to investigate further.
Comment 3 Michael Büker 2022-08-21 20:38:28 UTC
Created attachment 151486 [details]
screenshot of the bug appearing
Comment 4 Michael Büker 2022-08-21 20:41:48 UTC
Further information: Althought the "Configure kwrite ..." menu entry is missing, the options dialog is accessible through its standard shortcut Ctrl+Shift+,

The "Configure ..." menu entry is currently _not_ missing from either kate or kile.
Comment 5 Christoph Cullmann 2022-08-21 20:45:35 UTC
Hi,

do you have some files in

~/.local/share/kxmlgui5/kwrite

? What happens if you move that folder out of the way for a test?
Comment 6 Michael Büker 2022-08-21 21:02:03 UTC
(In reply to Christoph Cullmann from comment #5)
> do you have some files in
> 
> ~/.local/share/kxmlgui5/kwrite
> 
> ? What happens if you move that folder out of the way for a test?

Yes, there is a file there named kwriteui.rc, which is about 100 lines of XML. When I move this file away, two things happen:

1. The missing "Configure kwrite …" comes back.
2. My toolbar customizations are (partly?!) reset.

Both effects revert when I put the file back in place.

I'm attaching the kwriteui.rc in question (note that I've never manually edited it, only fiddled with the toolbar editor in kwrite itself), as well as screenshots of both situations.
Comment 7 Michael Büker 2022-08-21 21:03:31 UTC
Created attachment 151487 [details]
possible defective kwriteui.rc
Comment 8 Michael Büker 2022-08-21 21:04:19 UTC
Created attachment 151488 [details]
screenshot with the kwriteui.rc in place
Comment 9 Michael Büker 2022-08-21 21:04:50 UTC
Created attachment 151489 [details]
screenshot without the kwriteui.rc in place
Comment 10 Christoph Cullmann 2022-08-21 21:09:21 UTC
I think we just had some incompatibility there.

I would propose you either just configure your toolbars once from scratch (after removing the file).

I see no way to fix that for the old version.
Comment 11 Michael Büker 2022-08-22 18:46:54 UTC
(In reply to Christoph Cullmann from comment #10)
> I think we just had some incompatibility there.
> 
> I would propose you either just configure your toolbars once from scratch
> (after removing the file).
> 
> I see no way to fix that for the old version.

Sure, that does the trick, and it wasn't too much work. Thanks for your time!
Comment 12 Christoph Cullmann 2022-08-22 18:54:38 UTC
Sorry for the inconvenience!