I noticed that on Ubuntu 22.04.2 LTS my KeePass main window was always starting maximized. Even if I minimize and resize it, on next opening it would be maximized again. It's been like this for a while (months, at least), but today I searched these forums and found a very old post about a similar problem that was resolved by editing KeePass.ini. I poked around and found relevant looking entries in KeePass.config.xml. I edited a section to look like this:
I then opened KeePass (by running mono opt/keepass/KeePass.exe) and was pleased to see that the main window opened at a more reasonable size. However, when I exit from KeePass and check the KeePass.config.xml file, it has changed to this:
When I re-open KeePass now the window is back maximized. Further re-runs of KeePass leave the config in this state. Any clue why the config values grow in size after I exit KeePass? Is there a workaround? Thanks in advance for any help.
mono must be mis-reporting the window size and KeePass is simply writing that information to the config file.
A workaround is to set the values in the enforced config file. https://keepass.info/help/kb/config_enf.html
cheers, Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I noticed that on Ubuntu 22.04.2 LTS my KeePass main window was always starting maximized. Even if I minimize and resize it, on next opening it would be maximized again. It's been like this for a while (months, at least), but today I searched these forums and found a very old post about a similar problem that was resolved by editing
KeePass.ini. I poked around and found relevant looking entries inKeePass.config.xml. I edited a section to look like this:I then opened KeePass (by running
mono opt/keepass/KeePass.exe) and was pleased to see that the main window opened at a more reasonable size. However, when I exit from KeePass and check theKeePass.config.xmlfile, it has changed to this:Sure enough when I re-run KeePass in the same way, the main window is larger than I left it. So I exit again and check the config file to see this:
Going round the loop again I arrive at:
And again:
When I re-open KeePass now the window is back maximized. Further re-runs of KeePass leave the config in this state. Any clue why the config values grow in size after I exit KeePass? Is there a workaround? Thanks in advance for any help.
mono must be mis-reporting the window size and KeePass is simply writing that information to the config file.
A workaround is to set the values in the enforced config file.
https://keepass.info/help/kb/config_enf.html
cheers, Paul
Thank you - setting width and height in the enforced config file is working.