Page MenuHome GnuPG

Kleopatra: Main certificate view does not keep selected column width
Testing, NormalPublic

Description

Column width is reset to standards if Kleopatra is only closed and not quit before restart of the system.

Additionally there are issues with the column width when changing the screen settings between boots. Even when Kleopatra was shut down completely.

Details

Version
Gpg4win-3.1.14

Event Timeline

werner edited projects, added Feature Request; removed Bug Report.
aheinecke added a subscriber: aheinecke.

Hi,

werner this would really be a bug because we have code in Kleopatra to both save the selected coloumns, their widths and the sorting state.

tps800 how do you close Kleopatra? The Column width is saved when you "Quit Kleopatra" if you only minimize it and then it is maybe restarted after reboot we might have an issue with that.

If you explicitly select "File -> Quit Kleopatra" and then start Kleopatra again are the column widths really not saved? I cannot reproduce that for me this works.

Kleopatra running on Linux (Ubuntu 20.10, 21.04; Fedora 34, 35 (rawhide)) does this. Closing Kleopatras window saves columns and column widths as shown (it even works if I change the systemwide used font).
On Windows 10 this does not work. Closing Kleopatra via the windows "Close Button" or by selecting "Close Window" or "Exit" from the main menu settings will not be saved. Opening the window again will show columns as they where after installing (way to small for displaying the dates created and expired and the hash of the key). The sorting column is lost too on Windows, but not Linux.
I am unsure if this bug is triggered by my company setup, or if it exists on any Windows 10 installation.

I've checked to find if Kleopatra tries to write these settings to some file failing silently because of missing access rights. Might be the problem here. It tries to write to files, but these writes seem to fail. Maybe Kleopatra assumes these files are writable without being sure about it? And in tune does not report about this forbidden action?

When does it work and when not:

  • It works: if I change columns, column widths, sorting column or window size. Then close Kleopatra and restart it within the same environment (screen size).
  • It does not work if I change columns, column widths, sorting column or window size. Then just close the window (hide it), but not closing Kleopatra. At system shutdown Kleopatra seems not to save anything. Same is true if I request quitting Kleopatra via some task manager, sending quit application.
  • Kleopatra seems to loose these settings, if restarted with some other screen size than the one it was last started. Looks like it is enough to switch of the external monitor forcing Windows to switch to the laptop internal one and then turning on the external monitor again windows switching back. If Kleopatra is now quitted it will save the old settings, not the new ones. This may be due to various changes Windows makes to fit best as possible to the other screen size and DPI. These changes seem to confuse Kleopatra not saving anything if quitted afterwards, reverting to the old settings last stored if restarted.

With the third case it accesses the settings file, but does not write anything.

ikloecker renamed this task from Main certificate view does not keep selected column width to Kleopatra: Main certificate view does not keep selected column width.Dec 5 2022, 9:13 AM
ebo changed the task status from Open to Testing.Wed, Mar 27, 12:00 PM
ebo added a project: Restricted Project.
ebo added a subscriber: ebo.

In a current version I see this at least if I do not quit Kleopatra completely and restart to another screen setting. Further testing at the moment is not warranted, as there will be changes to the columns handling with the switch to Qt6. (T6924)

So I'll test this again with a Qt6 Testversion at the appropriate time.

ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Wed, Mar 27, 12:00 PM