Page MenuHome GnuPG

Kleopatra: Change location of *staterc files
Closed, ResolvedPublic

Description

Kleopatra (and other KDE apps) shall store the *staterc files below %LOCALAPPDATA% instead of below %GNUPGHOME%.

Implementation hints:

  • Qt defines StateLocation (defaults to C:/Users/<USER>/AppData/Local/<APPNAME>/State)
  • We re-define StateLocation (and GenericStateLocation) in the qt.conf we install
  • kconfig uses AppDataLocation (defaults to C:/Users/<USER>/AppData/Roaming/<APPNAME>) for the state config files (on not-Linux)

Plan:

  • Remove re-definitions of StateLocation (and GenericStateLocation) from our qt.conf
  • Patch kconfig to use StateLocation instead of AppDataLocation for state files
  • Migrate state files from pre-KF6 location to new location
  • Try to upstream the kconfig patch

Event Timeline

ebo triaged this task as Normal priority.Jul 31 2025, 3:28 PM
ebo created this task.
ebo changed the edit policy from "All Users" to "Contributor (Project)".
ikloecker renamed this task from Wrong location of *staterc files to Kleopatra: Change location of *staterc files.Jul 31 2025, 6:01 PM
ikloecker updated the task description. (Show Details)
ikloecker claimed this task.
ikloecker removed projects: KF6, gpd5x.

Yes, this is obsolete. In the meantime KF6 uses GenericStateLocation instead of AppDataLocation everywhere so that there's nothing to upstream. And with T7717: Location of qt-application config files we set a product-specific value for GenericStateLocation below %LOCALAPPDATA%.

Closing as resolved but without project tags.