-
This crash happened when the lite-xl tried to access a path that didn't exist. We create the path at QStandardPaths::AppDataLocation at startup (it is where we load all the templates), but not QStandardPaths::AppCacheLocation which is where we told the lite-xl to look for the session.lua file. Normally if the file doesn't exist, it will create a new one, but if the path doesn't exist it throws and exception (which translates as a crash in our case). So I fixed it to use the same folder we already know exists and where all the rest of the app data is.
This crash happened when the lite-xl tried to access a path that didn't exist. We create the path at QStandardPaths::AppDataLocation at startup (it is where we load all the templates), but not QStandardPaths::AppCacheLocation which is where we told the lite-xl to look for the session.lua file. Normally if the file doesn't exist, it will create a new one, but if the path doesn't exist it throws and exception (which translates as a crash in our case). So I fixed it to use the same folder we already know exists and where all the rest of the app data is.