Ensure settings directory exists before saving and set default settings file path in run.sh

This commit is contained in:
2026-03-20 08:17:02 +01:00
parent 66c1678d34
commit 27e9202e25
2 changed files with 16 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ function loadSettings() {
function saveSettings() {
try {
fs.mkdirSync(path.dirname(settingsFilePath), { recursive: true })
fs.writeFileSync(settingsFilePath, JSON.stringify(appSettings, null, 2), 'utf8')
} catch (error) {
console.error('Failed to save settings:', error)