Most software creates a directory (usually in ~/Library
or ~/Library/Application Support
in MacOS) to store user preferences, browser history, etc. Most software attempts to create their data directory immediately upon launch and will either crash or refuse to continue if the directory cannot be created.
For example, if I create a file called ~/Library/Application Support/Google
, then Google Chrome will be unable to access or create a directory there, because the name is already taken by a non directory. This will cause Google Chrome to immediately 'quit unexpectedly'. If I do the equivalent to Firefox, a message will say that an 'unexpected error has prevented changes from being saved' and will have to quit.
Why would changes have to be saved in software so importantly that the software will break if it cannot? Do they really need to create a bunch of files to render a webpage at a URL? I do not see any way were saving data is critical to the immediate execution of the app. The worst that should happen is all the apps configuration and data should reset as soon as it quits.
Why is it common for apps to break immediately if no data saving directory is available?