Page MenuHome GnuPG

Kleopatra: Display "gpgconf -X"
Open, WishlistPublic


Edit: This ticket was hijacked for the task of adding the output of gpgconf -X at an appropriate location in Kleopatra.

The new ticket for adding debug information to Kleopatra is T7147: Kleopatra: Add debug information / Log handling

The original text of this task was:

We were talking about a possibility to enable logging for Kleopatra in the GUI of Kleopatra:

First, I created a mockup. There you can see checkboxes to enable logging for each component and an input field which will be filled with a default path. Another (optional) idea is to show a textarea where the content of the log file is visible. Then users would save some time because they would not have to navigate to the file first and then to open it and it would be very comfortable.

Maybe there could also be a button to delete the file from the GUI. This is not shown in the mockup.

@aheinecke what are you thinking about this?

Revisions and Commits

rKLEOPATRA Kleopatra

Event Timeline

We have KWatchGnuPG for watching the log files.

aheinecke triaged this task as Wishlist priority.Jul 18 2022, 9:05 AM

@ikloecker KWatchGnuPG does not work on Windows. And this also does not work with Kleopatra logging and GPGME logging, Kleopatra logging needs Dbgview on Windows, which can be spammed by other software and GPGME logging requires an enviornment variable. So having this in a logging view would be good for support.

I am not sure about the Logging output Window because you need to do actions with Kleopatra when logging is active and not have the settings open. I rather tend towards a file like for our other logs. This also helps with support the most. Especially with GPGME debugging the log output view would scroll by so fast as to be useless. GPGME logging needs to be searched and filtered before becoming useful as it is very verbose regarding IO operations.

For documentation purposes: Werner suggested to use a TCP socket on Windows for logging (on the mailing list).

What I need in particular is a way to get the output of gpgconf -X.

I am adding gpgcom, as a tag, the first minimal task would be to create such a page with the debug output from gpgconf -X with options to copy / or save them to a file. Not sure if that should be a subtask, because on the other hand this would be a start of this "Debug Tab"

Output of --show-configs should also be added as a button or directly visible when the selftest of Kleopatra fails.

TobiasFella moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

The changes where backported for VSD33, but they have little to do with the original request. They only address

I've talked to ebo about this and yes she will create subtasks for at least GPGME log an qDebug logging the GnuPG Logs can already disabled in the config so we dont really need it. Currently it looks like this and I find it rather confusing:

As this is static output which does not say much to users I do not think it is necessary to show at all. Just a "File save as" dialog for gpgconf -x in an entry "Additional support information" maybe in the about dialog would be better IMO.

For a View I would expect rather dynamic / autoscroling infos so that second level support or so might just see some issue and the user can see if anything is happening in the background. And the menu entry "GnuPG Log Viewer" does not exist so "Debug View" is the first menu item under "Tools" or "Extras.

So I do not even think that we have a decent solution for werners request:

What I need in particular is a way to get the output of gpgconf -X.

Because if we ship the current dialog as a "Debug View" with the single item dropdown and And I would personally advice for hiding the menu entry for now. If we just keep gpgconf -X it should be under help since only support will ask for this.

ebo renamed this task from Debug Tab in Kleopatra to Kleopatra: Display "gpgconf -X" .Tue, Jun 11, 1:33 PM
ebo updated the task description. (Show Details)

Tested with Gpg4win-4.3.2-beta25

It works in principle.

I'm not sure if its better to show gpgconf -X output below Tools or Help. But I'm definitively against calling it "Debug View". "Debug Tools" would seem fitting for the tools menu. Although currently it is only a view of the configuration files. Like it is now I would name this something like "GnuPG configuration dump".

And when saving it, do not suggest I filename ending with .log, it is no log. Just use .txt (or .org but I'd prefer the former).
There is no Close button. Currently the only possibility is closing the window via the title bar.
Apropos: There is no text in the title bar except "Kleopatra". I think there is an additional string describing the window missing. Like "Configuration Dump".

And a better default location for the saved file on Windows might be Documents. But I can live with the current default of the users home directory.