vengi-voxel / vengi

free and open source voxel art tools - editor, thumbnailer and format converter
http://vengi-voxel.github.io/vengi/
Other
1.05k stars 87 forks source link

APP: the application should create a pid file and check for a stale pid to detect a previous crash #413

Closed mgerhardy closed 3 months ago

mgerhardy commented 3 months ago

We must be able to detect crashes to offer the option to reset the cvars to the default values.

see issue #412 - the users have to manually delete config files or change cvars to be able to start the application again.

For this to work, we should create a pid file with every start and delete it on shutdown. If the application is now starting again we can offer a system dialog via SDL to offer the options to delete reset all cvars to the default values.

Should maybe be implemented in the WindowedApp class - or even in the App class if SDL also has a command line "dialog" implemented

mgerhardy commented 3 months ago

6db2fbcf3b202f3d53136687c7ef5afa3fb74ff3 implemented pid handling.