Kleopatra should remember where the user has saved a file or from where they have opened a file and offer the same location the next time the user uses the same workflow, e.g. when a user created a CSR and saved it in folder $HOME/foo then Kleopatra should open the file save dialog at $HOME/foo when the user creates another CSR. By default, Kleopatra should use the Documents folder.
Note: Kleopatra did already cache the last used folder for some operations, but only in memory. The purpose of this ticket is to make this caching persistent, so that it survives a restart of Kleopatra. It's not the purpose of this ticket to remember the last used folder for all existing workflows in Kleopatra. If you notice that the caching is missing for some workflow then create a separate ticket for this.
Note for testing: Since Kleopatra did already cache the locations in memory you'll have to restart Kleopatra to verify that the locations are now remembered persistently.
The following file system locations use the to-be-improved mechanism. You don't have to test all of them since it's a generic mechanism.
- checksum creation and verification
- decrypt/verify files
- sign/encrypt files
- export certificates, groups, secret keys, secret subkeys
- secret key backup when moving key to card
- create csr