Page MenuHome GnuPG

Make it possible to run Kleopatra VSD and Kleopatra GPD in parallel
Testing, HighPublic

Description

It should be possible to run Kleopatra VSD and Kleopatra GPD at the same time. Currently, this isn't possible because Kleopatra is a/uses KUniqueService. Both versions use a different GNUPGHOME so that a more general solution based on GNUPGHOME would be a possible solution.

This is closely related to T7040, but I'd like to keep this separate.

test on hold: needs gpd5 beta/release and vsd4 beta/release

Revisions and Commits

rKLEOPATRA Kleopatra
rW Gpg4win

Event Timeline

ikloecker moved this task from Backlog to WIP on the gpd5x board.
ikloecker changed the task status from Open to Testing.Feb 26 2025, 2:01 PM

Remarks:

  • This works now on Windows and with the AppImage. This was achieved by customizing the internal application name of Kleopatra: kleopatra-vsd for GnuPG VS-Desktop, kleopatra-gpd for GnuPG Desktop, kleopatra for everything else.
  • As a side effect the different flavors of Kleopatra now use different names for the main config file and for the state file, i.e. Gpg4win uses kleopatrarc and kleopatrastaterc, GnuPG VS-Desktop will use kleopatra-vsdrc and kleopatra-vsdstaterc, and GnuPG Desktop will use kleopatra-gpdrc and kleopatra-gpdstaterc.
  • The internal application name is also used for config entries retrieved from the registry. That means that for VSD and GPD different registry paths are used in future releases.
  • Testing on Windows requires T7040: Make it possible to install GnuPG VSD and GPD in parallel.
timegrid added a project: test on hold.
timegrid updated the task description. (Show Details)
ikloecker changed the task status from Testing to Open.Mon, Dec 8, 5:27 PM
ikloecker moved this task from QA to WIP on the gpd5x board.

Reopen because I'm changing the implementation

ikloecker changed the task status from Open to Testing.Tue, Dec 9, 10:59 AM

The new implementation can now be tested (once we have GPD/VSD 4 builds)

All changes have been backported for VSD 3.4 (because they are closely entwined with changes for T7717).

Regarding testing: The next Gpg4win 5 beta can already run concurrently with VSD 3.3. The only problem is that an error about the Windows Explorer integration is shown because only one of the two Kleopatras can listen to the UI server socket. This might be fixed at least partially with VSD 3.4 which will used a different GNUPGHOME.

But there are more fundamental problems that need to be fixed with the Windows Explorer integration (see T7969: GpgEX: Support concurrently running Kleopatras).

ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Dec 15, 10:00 AM

Back to WIP because I had to fix a regression.

ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Dec 22, 9:41 AM