Kleopatra: Restore last window location on next start
Closed, ResolvedPublic

Assigned To
Authored By
• ikloecker
Mar 5 2025, 4:45 PM

Description

The main window of Kleopatra should open at the same location as on the last exit of Kleopatra.

Note: The infrastructure for this is already there in KMainWindow. We just need to make a small change in Kleopatra to make use of this.

Event Timeline

• ikloecker created this task.
• ikloecker moved this task from Backlog to WIP on the gpd5x board.
• ikloecker changed the task status from Open to Testing.Mar 10 2025, 11:18 AM

with version 4.0.0.250370 (Gpg4win-5.0.0-beta145), Kleopatra from Friday.

Location of the main window is now restored.
Tested with a single monitor setup only, but the fix for multiple monitors is not yet included in the testbuild anyway.

ToDo for the test with the next version: check the State entry in the [MainWindow] section kleopatrastaterc and/or note if there are no Display warnings any more.
And remember that the location of the kleopatrastatrc is now %APPDATA%\gnupg\kleopatra …

timegrid added a subscriber: timegrid.

looks good to me on gpg4win-5.0.0-beta190@win10

tested with a second virtualbox monitor. it also works fine, if the mesmerized monitor is inactive (window appears on the available monitor)