Bug 416729

Summary: Configuration confusingly split into 3 files
Product: [Applications] okular Reporter: Ben Creasy <ben>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid, yurchor
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ben Creasy 2020-01-25 09:25:39 UTC
SUMMARY

The configuration files for Okular includes a particularly surprising place at ~/.local/share/kxmlgui5/okular/shell.rc which prompts questions https://askubuntu.com/questions/1090285/where-does-okular-store-its-config-files. It should be moved to XDG_CONFIG_HOME per https://bugs.kde.org/show_bug.cgi?id=397602 with any state remaining in XDG_LOCAL_HOME.

There's also ~/.config/okularpartrc and ~/.config/okularrc and the latter contains state data (State, Height, Width) which should be moved to XDG_LOCAL_HOME.

STEPS TO REPRODUCE
1. Follow steps in AskUbuntu question to see the configuration file pop up.
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


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-01-25 09:29:07 UTC
This would be a kxmlgui bug if it is a bug at all.

Feel free to open a bug against that library here in bugs.kde.org
Comment 2 Ben Creasy 2020-01-25 09:42:52 UTC
Filed in https://bugs.kde.org/show_bug.cgi?id=416731

Okular stores a bunch of state in okularrc. Also, why two separate files - okularpartrc and okularrc?
Comment 3 Yuri Chornoivan 2020-01-25 09:52:22 UTC
(In reply to Ben Creasy from comment #2)
> Filed in https://bugs.kde.org/show_bug.cgi?id=416731
> 
> Okular stores a bunch of state in okularrc. Also, why two separate files -
> okularpartrc and okularrc?

Because Okular part is used in many applications (Kile, KBibTeX, etc.). Each application has its own settings (and Okular itself too) and list of the opened files, but they have the same settings for their PDF backend (Okular KPart).