You are here

[Fixed] Keepass 1.38 removes its INI-file after closing the application

8 posts / 0 new
Last post
Westender
Offline
Last seen: 3 years 5 months ago
Joined: 2009-10-28 18:05
[Fixed] Keepass 1.38 removes its INI-file after closing the application

Hi all,

every time, I start Keepass 1.38, it starts with the default language "english". I then change it go "german" which needs a restart.

This setting is saved into the file "keepass.ini" in the folder \PortableApps\KeePassPortable\App\keepass

When I stop the application, this file is completely removed, and starting Keepass again goes back to the english language.

What can I do, so the application does NOT delete its configuration file after closing? I already copied it into the folder \PortableApps\KeePassPortable\App\DefaultData\Settings since I found a very old configuration there. But it did not help, this file is never touched.

FunFact: when I set the configuration file in the explorer to "read only", KeePass reconstructs the file also with this attribute set, and I cannot change the language any more. Could it be, that this is a behaviour of the PortableApps Launcher rather than from KeePass??

Just checked: started KeePass directly from its directory on the stick and saved the configuration. After closing the app, the INI-File stayed in the folder and was not deleted.

Now I started it via the PortableApps Launcher, it started using the available INI-File (thus also in german language). After closing, the INI-file was deleted. So that's a strong indication for me, that the launcher removes the INI-file, after an application is closed.

Any Help, how to avoid this? Or is this a bug in the PortableApps Launcher?

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 5 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
KeePassPortable.exe

As with all our apps, start the launcher, KeePassPortable.exe. Never start the app's EXE directly.

Sometimes, the impossible can become possible, if you're awesome!

Westender
Offline
Last seen: 3 years 5 months ago
Joined: 2009-10-28 18:05
KeePass Portable

This is what I do usually, and then, the INI file is deleted. So KeePass will always start up in english, but I want to have the german language permanently selected. So the launcher should not delete the INI file, in my eyes. It only works properly, when starting the app's EXE directly. Only then, the INI file stays and the program starts in german language.

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 5 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Moves

Ah, you need to set the language but tell KeePass not to restart. Then, the next time you start it, it'll be in German. KeePass restarts itself in an odd way that breaks out of the portable launcher, so it fails to move the INI correctly on restart.

Sometimes, the impossible can become possible, if you're awesome!

Westender
Offline
Last seen: 3 years 5 months ago
Joined: 2009-10-28 18:05
Keepass 1.38 removes its INI-file after closing the application

Sorry, but this is also not correct. When starting KeePass directly, it saves the INI file in its correct place, and when closing, the INI file stays there. On the next direct start, it starts in german.

Only when starting from the PortableApps launcher, when closing KeePass, the INI file is deleted BY THE PORTABLE APP LAUNCHER, and NOT by KeePass itself. This is for me a bug in the PortableApps launcher.

Just for a better understanding, in case my initial description was not clear enough:

When starting KeePass DIRECTLY (what you don't recommend), then changing the language to "german" and closing KeePass, the INI file keepass.ini stays where it was created by KeePass: \PortableApps\KeePassPortable\App\keepass\keepass.ini. It contains the Language Setting:

KeeLanguage=German

I can restart it DIRECTLY as often as I like, the language stays switched to German.

Now I start KeePass VIA THE LAUNCHER (which is the way, you recommend) without any INI-File in the mentioned directory. Then it starts in english. Now I switch over to German, and the INI File is created. Then KeePass restarts, and now starts in German.

But when I now close KeePass, THE LAUNCHER SEEMS TO DELETE THE FILE \PortableApps\KeePassPortable\App\keepass\keepass.ini.

So again, this is a bug for me. The launcher must not delete any file, except maybe those, it needs and uses temporarily for itself, but none of the files, that any portable app has created on the stick.

Any by the way: when telling KeePass not to restart after changing the language, the next start still is in english, and not in german. So this absolutely does not work.

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 5 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Platform vs Launcher

To clarify, when I say the launcher, I mean KeePassPortable.exe. The platform is the PortableApps.com Menu. Are you launching it from the PA.c Platform and having it reset to English? If so, I can confirm that this is a bug and can put out a fix for it.

Sometimes, the impossible can become possible, if you're awesome!

Westender
Offline
Last seen: 3 years 5 months ago
Joined: 2009-10-28 18:05
Platform vs Launcher

Okay, that makes it a bit more clear.

I do start it, using the PLATFORM. The App starts then in english, and I change the setting to german.
Wenn leaving the app, and then restarting it again via the PLATFORM, it has reset back to english, so that I again have to change it to the german language.

Would be great, if you would have a fix for that, so it stays in german Smile

EDIT / UPDATE: obviously, you already implemented the fix, because after a restart, KeePass Classic stays in german.

Thanks a lot!!

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 5 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in Rev 2

Yes, I fixed the issue in 1.38 Rev 2 released on Sept 8. It was the language switching code.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments