Page MenuHome GnuPG

Kleopatra: Move kleopatrarc away from %LOCALAPPDATA%
Testing, HighPublic

Description

T6799 needs to be applied to the vsd 3 branch, too.

The config files should end up in %GNUPGHOME%\kleopatra, see https://dev.gnupg.org/T6799#198980

Update: Changed %APPDATA%\gnupg\kleopatra to %GNUPGHOME%\kleopatra. VSD will use %APPDATA%\gnupg-vsd as GNUPGHOME by default.

For reference for testing:

  • In VSD 3.1.26 < 3.3.0, Kleopatra uses the following config files
    • %LOCALAPPDATA%/kxmlgui5/kleopatra/kleopatra.rc -> move/migrate
    • %LOCALAPPDATA%/klanguageoverridesrc -> move/migrate
    • %LOCALAPPDATA%/kleopatrarc -> move/migrate
    • %APPDATA%/kleopatra/kleopatrastaterc -> move/migrate
    • %LOCALAPPDATA%/kleopatragroupsrc -> move/migrate
  • In VSD 3.3.0, Kleopatra uses the following config files
    • %LOCALAPPDATA%/kxmlgui5/kleopatra/kleopatra.rc -> move/migrate
    • %LOCALAPPDATA%/klanguageoverridesrc -> move/migrate
    • %LOCALAPPDATA%/kleopatrarc -> move/migrate
    • %APPDATA%/kleopatra/kleopatrastaterc -> move/migrate
    • %APPDATA%/gnupg/kleopatra/kleopatragroupsrc -> this is the desired location; if future VSDs use %APPDATA%/gnupg-vsd then they need to migrate everything from %APPDATA%/gnupg to %APPDATA%/gnupg-vsd, i.e. kleopatra doesn't need to care for this
  • In GPD 4.3.0, Kleopatra uses the following config files
    • %LOCALAPPDATA%/kxmlgui5/kleopatra/kleopatra.rc -> move/migrate
    • %LOCALAPPDATA%/klanguageoverridesrc -> move/migrate
    • %LOCALAPPDATA%/kleopatragroupsrc -> move/migrate
    • %LOCALAPPDATA%/kleopatrarc -> move/migrate
    • %APPDATA%/kleopatra/kleopatrastaterc -> move/migrate
  • In Gpg4win 4.3.1, Kleopatra uses the following config files
    • %APPDATA%/kleopatra/kxmlgui5/kleopatra/kleopatra.rc -> move/migrate
    • %APPDATA%/kleopatra/klanguageoverridesrc -> move/migrate
    • %APPDATA%/kleopatra/kleopatragroupsrc -> move/migrate
    • %APPDATA%/kleopatra/kleopatrarc -> move/migrate
    • %APPDATA%/kleopatra/kleopatrastaterc -> move/migrate
  • In Gpg4win 4.4.1, Kleopatra uses the following config files
    • %APPDATA%/gnupg/kleopatra/kleopatragroupsrc -> OK
    • %APPDATA%/kleopatra/kxmlgui5/kleopatra/kleopatra.rc -> move/migrate
    • %APPDATA%/kleopatra/klanguageoverridesrc -> move/migrate
    • %APPDATA%/kleopatra/kleopatrarc -> move/migrate
    • %APPDATA%/kleopatra/kleopatrastaterc -> move/migrate
  • In VSD 3.4 and Gpg4win 5.0 all config files used by Kleopatra shall be in/under %GNUPGHOME%/kleopatra.

Further notes for testing:

  • How to create some of the config files with the old versions:
    • Add an action to the toolbar (e.g. About Kleopatra) to get the file kxmlgui5/kleopatra/kleopatra.rc.
    • Configure a different language to get the file klanguageoverridesrc.
    • Create a group to get the file kleopatragroupsrc.
  • In VSD 3.4+ the old config files should be migrated to the following locations/names:
    • kxmlgui5/kleopatra/kleopatra.rc -> %GNUPGHOME%/kleopatra/kxmlgui5/kleopatra-vsd/kleopatra.rc
    • klanguageoverridesrc -> %GNUPGHOME%/kleopatra/klanguageoverridesrc
    • kleopatrarc -> %GNUPGHOME%/kleopatra/kleopatra-vsdrc
    • kleopatrastaterc -> %GNUPGHOME%/kleopatra/kleopatra-vsdstaterc
    • kleopatragroupsrc -> %GNUPGHOME%/kleopatra/kleopatragroupsrc
  • In GPD 4.4+ the old config files should be migrated to the following locations/names:
    • kxmlgui5/kleopatra/kleopatra.rc -> %GNUPGHOME%/kleopatra/kxmlgui5/kleopatra-gpd/kleopatra.rc
    • klanguageoverridesrc -> %GNUPGHOME%/kleopatra/klanguageoverridesrc
    • kleopatrarc -> %GNUPGHOME%/kleopatra/kleopatra-gpdrc
    • kleopatrastaterc -> %GNUPGHOME%/kleopatra/kleopatra-gpdstaterc
    • kleopatragroupsrc -> %GNUPGHOME%/kleopatra/kleopatragroupsrc
  • In Gpg4win 5.0+ the old config files should be migrated to the following locations/names:
    • kxmlgui5/kleopatra/kleopatra.rc -> %GNUPGHOME%/kleopatra/kxmlgui5/kleopatra/kleopatra.rc
    • klanguageoverridesrc -> %GNUPGHOME%/kleopatra/klanguageoverridesrc
    • kleopatrarc -> %GNUPGHOME%/kleopatra/kleopatrarc
    • kleopatrastaterc -> %GNUPGHOME%/kleopatra/kleopatrastaterc
    • kleopatragroupsrc -> %GNUPGHOME%/kleopatra/kleopatragroupsrc

Details

Version
VSD 3.3.2

Event Timeline

ebo created this object with edit policy "Contributor (Project)".
ebo added a project: kleopatra.
werner added a subscriber: werner.

That is not Windows specific. They should end up in %GNUPGHOME%/kleopatra/

I know of no current Linux issue with this, I thought only the MSI installer is affected

This will never happen on stock Linux.

werner added a project: Feature Request.

But we have the same problems on Unix as described by T7699. (funny, the other bug mentioned above has 76 reversed)

Add gpd5x tag to ensure testing with Gpg4win.

ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Jul 21, 9:48 AM
ikloecker changed the task status from Open to Testing.Tue, Jul 22, 12:25 PM
ikloecker moved this task from Backlog to WIP on the vsd34 board.

Done for gpg4win 5 and backported for VSD 3.4 (provided that the gpg4win-4-branch will be used for VSD 3.4).