Fixed the program closing on linux when it was ran from the desktop and not the terminal. Fixed settings being deleted on first run.