Bug 416729 - Configuration confusingly split into 3 files
Summary: Configuration confusingly split into 3 files
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-25 09:25 UTC by Ben Creasy
Modified: 2020-01-25 09:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).