Skip to content
Snippets Groups Projects
  • Andy Nichols's avatar
    c2d25163
    Fix crash on start issue on Windows · c2d25163
    Andy Nichols authored and Andy Nichols's avatar Andy Nichols committed
    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.
    Fix crash on start issue on Windows
    Andy Nichols authored and Andy Nichols's avatar Andy Nichols committed
    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.