My Okular settings are messed up. Tried purging the package, tried clearing okular files from "~/.config", no relevant output opening from terminal, nothing in man page bout getting more feedback...?

My Okular settings are messed up (menus are broken, details probably not important to describe).

I tried purging the package and reinstalling,
tried clearing okular files from “~/.config”,
got no relevant output opening from terminal,
saw nothing in man page bout getting more feedback…?

What do?

I couldn’t find anything on the man page about, like, a flag to get it to tell you what files it’s reading when it starts up or anything like that?
(
the only output I get when I open it from the commandline is:

Unable to open QuickAnnotatingTools XML definition
kf.xmlgui: Shortcut for action “mainToolBar” “Show Toolbar” set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.

)

They are important to describe. Better yet, show a screenshot.

Wow, fast! Thank you! This good?

Judging by the lack of window decorations and the use of scrot I’m assuming you’re using some WM instead of Plasma?

What distro are you using, and were you doing something in Okular before the issue started happening?

Oh, I just used sleep 1;scrot -u from yakuake then lowered it quickly cuz… that’s what I knew offhand how to do.
(I know there’s screenshot functionality built in to plasma that I should look into learning about, but… just haven’t gotten around to it yet.)

I’m on “Tuxedo OS 3” (ie, yet another ubuntu derivative),
but this problem has been with me for ages and I’ve just finally worked up the energy to try to fix it
(so like, I know it followed me from OpenSUSE Tumbleweed, and I’m sure before that too…)

It also followed me when I upgraded from Tuxedo OS 2 to 3 (and thus from plasma 5.27 to 6.1
[ details on that:
before:

	Operating System:      	TUXEDO OS 2
	KDE Plasma Version:    	5.27.10
	KDE Frameworks Version:	5.114.0
	Qt Version:            	5.15.12
	Kernel Version:        	6.5.0-10043-tuxedo (64-bit)
	Graphics Platform:     	X11
	Processors:            	32 × 13th Gen Intel® Core™ i9-13900HX
	Memory:                	62.5 GiB of RAM
	Graphics Processor:    	NVIDIA GeForce RTX 4090 Laptop GPU/PCIe/SSE2
	Manufacturer:          	TUXEDO
	Product Name:          	TUXEDO Stellaris Intel Gen5

after:

	Operating System:      	TUXEDO OS 3
	KDE Plasma Version:    	6.1.2
	KDE Frameworks Version:	6.3.0
	Qt Version:            	6.7.0
	Kernel Version:        	6.5.0-10043-tuxedo (64-bit)
	Graphics Platform:     	X11
	Processors:            	32 × 13th Gen Intel® Core™ i9-13900HX
	Memory:                	62.5 GiB of RAM
	Graphics Processor:    	NVIDIA GeForce RTX 4090 Laptop GPU/PCIe/SSE2
	Manufacturer:          	TUXEDO
	Product Name:          	TUXEDO Stellaris Intel Gen5

currently:

	Operating System:      	TUXEDO OS 3
	KDE Plasma Version:    	6.1.3
	KDE Frameworks Version:	6.4.0
	Qt Version:            	6.7.0
	Kernel Version:        	6.5.0-10043-tuxedo (64-bit)
	Graphics Platform:     	X11
	Processors:            	32 × 13th Gen Intel® Core™ i9-13900HX
	Memory:                	62.5 GiB of RAM
	Graphics Processor:    	NVIDIA GeForce RTX 4090 Laptop GPU/PCIe/SSE2
	Manufacturer:          	TUXEDO
	Product Name:          	TUXEDO Stellaris Intel Gen5

]

Uh, here it is with the window decorations if that’s relevant?
(ie from sleep 1;scrot -u -b)

Oh yeah, and the contents of the menus
(
sorry, I have to spread these out over multiple posts cuz the forum said:

An error occurred: Sorry, new users can only put one embedded media item in a post.

)

An error occurred: You’re replying a bit too quickly. Please wait 17 seconds before trying again.

I guess I’ll just… do this for now:
![2024-08-13-165119_2560x1492_scrot|690x402](upload://fDJrpvwK2nOVHMhF2nxfyLFcTC.png)
![2024-08-13-165127_2560x1492_scrot|690x402](upload://esS4CLxJj37Jl8WTGCP6wFTQYeB.png)
![2024-08-13-165138_2560x1492_scrot|690x402](upload://z6B6VhJc1l91t7l9hwe4ahOF6bv.png)
![2024-08-13-165145_2560x1492_scrot|690x402](upload://nJo0PgBAu30A2MvZMa1BMoW0Gff.png)
![2024-08-13-165153_2560x1492_scrot|690x402](upload://wzDUOutSfMgC0ngC3I6Fuw4hVH.png)
![2024-08-13-165159_2560x1492_scrot|690x402](upload://ue9tvRkccuQWTNuqJ5Va7y1vHv.png)

and come back and… do the rest later?

Oh, I know! I just put them in an imgur post!

An error occurred: Sorry, you can’t include links in your posts.

God damnit lol!

https://imgur.com/a/53MaKKc

And like, you can see stuff like eg, when I hit the key 1, it tells me:

The key sequence ‘1’ is ambiguous. Use ‘Configure Keyboard Shortcuts’
from the ‘Settings’ menu to solve the ambiguity.
No action will be triggered.

but there is no 'Configure Keyboard Shortcuts' under the second-to-last No text menu that I think is supposed to be 'Settings'

I suspect there’s some packaging issue with XmlGui, the library that actually manages showing the menu and toolbar, since it’s the default menus that are missing (File with its main options, Settings, Help).

Is it possible you don’t have libkf6xmlgui6 and libkf6xmlgui-data installed?

Does this happen in other apps, like Kate or Dolphin (after enabling the menubar with Ctrl+M)?

Do you have stuff in /usr/share/kxmlgui5 and ~/.local/share/kxmlgui5?

Edit: Only now saw that Herzenschein wrote something similar 5 minutes prior.

Just to make sure, did you delete both ~/.config/okularpartrc as well as ~/.config/okularrc?

The errors you are describing seem to me like the kxmlgui framework isn’t initialised correctly, so it tripping up over e.g. a malformed ~/.config/okularpartrc would make sense to me.

You might also want to try deleting the contents of ~/.local/share/kxmlgui/okular/.

Hey, thanks! (Sorry, juggling a bunch of other projects here, and then fell asleep, but appreciating yall’s help.)


Yes, I do
[
$ tree /usr/share/kxmlgui5
#=>

	/usr/share/kxmlgui5/
	├── kfontview/
	│   ├── kfontviewpart.rc
	│   └── kfontviewui.rc
	├── ktorrent/
	│   ├── ktorrent_bwschedulerui.rc
	│   ├── ktorrent_downloadorderui.rc
	│   ├── ktorrent_magnetgeneratorui.rc
	│   ├── ktorrent_mediaplayerui.rc
	│   ├── ktorrent_searchui.rc
	│   ├── ktorrent_shutdownui.rc
	│   ├── ktorrent_syndicationui.rc
	│   ├── ktorrentui.rc
	│   └── kttorrentactivityui.rc
	└── plasmadiscover/
	    └── plasmadiscoverui.rc

	3 directories, 12 files

$ tree ~/.local/share/kxmlgui5
#=>

	/home/o1/.local/share/kxmlgui5/
	├── dolphin/
	│   └── dolphinui.rc
	├── externaltools/
	│   └── ui.rc
	├── gwenview/
	│   └── gwenviewui.rc
	├── kate/
	│   └── kateui.rc
	├── katefiletree/
	│   └── ui.rc
	├── katekonsole/
	│   └── ui.rc.backup
	├── katepart/
	│   └── katepart5ui.rc
	├── kateproject/
	│   └── ui.rc
	├── katesearch/
	│   └── ui.rc
	├── konsole/
	│   ├── konsoleui.rc
	│   ├── partui.rc
	│   └── sessionui.rc
	├── lspclient/
	│   └── ui.rc
	├── okular/
	│   ├── part.rc
	│   └── shell.rc
	├── tabswitcher/
	│   └── ui.rc
	└── textfilter/
	    └── ui.rc

	14 directories, 17 files

]

Kate and Dolphin are perfectly normal as far as I can tell.
It’s only Okular I’m seeing this weird menu mess with.


Yes, I made sure to clear anything matching okular out.

I just cleared it all again and ran okular,
and it only regen’d the one file this time:

$ cat okularrc
#=>

	[Desktop Entry]
	FullScreen=false

	[General]
	LockSidebar=true
	ShowSidebar=true

	[MainWindow]
	ToolBarsMovable=Disabled

Oh, also just tried mv ~/.local/share/okular/ ~/.local/share/okular.bak and removing any okular stuff from ~/.config, still no effect.

[
ie, when I remove the directory ~/.local/share/okular/
and any okular files from ~/.config/ (in practice, that is only the file okularrc)
and then start okular,
the problem is still there,
and that directory and file just regenerate themselves
]

Just saw new comment on lemmy about trying to use strace
https://lemmy.world/comment/11757019
[I’m still not allowed to post links, sorry]

them:

I would probably try running

strace okular | grep openat

to see all the files it’s trying to read and see if any aren’t managed by your package manager and move those.

me:

Oooh! Now that’s a new idea! Thank you!

… uh, any tips on how to filter/process the output? There’s like a bazillion lines going on about breeze-dark icons etc…