You are here

KeePass: Normal shutdown = did not close properly

6 posts / 0 new
Last post
lwc
Offline
Last seen: 1 month 3 days ago
Translator
Joined: 2006-04-26 06:35
KeePass: Normal shutdown = did not close properly

Ever since upgrading to v1.28, I can't initially open KeePass Portable after a standard system shut down. I keep getting this image:
http://postimg.org/image/sx5cfjfbd/
(do note it does get fixed as soon as I re-open it).

Please fix the launcher to support system shutdowns. KeePass is by definition a background program. It shouldn't have difficulties dealing with system shutdowns, especially when older versions had no issues plus the real KeePass handles them just fine.

John T. Haller
John T. Haller's picture
Online
Last seen: 48 min 12 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
windows shutdown force quits apps

Since Windows Vista, Windows force quits apps that don't respond to the windows shutdown message within a few seconds. Background apps in particular have no window to receive a close message and are just crashed. The only way around that is to use the windows api to make a call that you're doing something critical. So Windows will kill off both keepass and the portable launcher but won't let the portable launcher close gracefully and move keepass's settings file back to the data directory. That means it would be missed if you ran a backup of your app data after you started up the next time. This was always an issue, the app just never alerted you before. We wouldnt have to move the settings file back and forth if keepass supported a command line switch or environment variable to point it to settings, but it does not. You can use the pa.c platform to politely close all your apps and warn you about which ones do not close. Or you can use non paf keepass and it won't warn you of the crash.

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

alMubarmij
alMubarmij's picture
Offline
Last seen: 9 months 1 week ago
Joined: 2008-11-04 22:58
A small script to fix the error message for all PortableApps

Universal solution for all PortableApps to fix error message: "App did not close properly..."

1- Make a "Start.cmd" file or choose any other name with ".cmd" extension.

2- Copy and paste the following code into it:


@COLOR 2F
FOR /F %%i IN ('dir /b "*.exe"') DO SET APPNAME=%%i
SET APPNAME=%APPNAME:.exe=%
DEL .\Data\PortableApps.comLauncherRuntimeData-%APPNAME%.ini
START .\%APPNAME%.exe

3- Double click on the ".cmd" file to launch your app without facing any annoying messages again.

John T. Haller
John T. Haller's picture
Online
Last seen: 48 min 12 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Data Loss

This will cause data loss in multiple apps that try to run without restoring the data files to the proper location before running. The message is there for a reason. Heed it.

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

alMubarmij
alMubarmij's picture
Offline
Last seen: 9 months 1 week ago
Joined: 2008-11-04 22:58
I have been using this

I have been using this solution for a year (357 days approximately),
I have never noticed any data lose issue with it.

John T. Haller
John T. Haller's picture
Online
Last seen: 48 min 12 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Varies By App

It varies by app. Some apps will leave personal details behind locally. Some apps will leave non-personal details behind locally. Some apps will leave your personal data in the wrong location on the drive and overwrite it on next run. Some apps will have only minor issues. Some apps will be unaffected.

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

Log in or register to post comments