diff --git a/Common/SessionData.qml b/Common/SessionData.qml index 4900b0ec..5187f79f 100644 --- a/Common/SessionData.qml +++ b/Common/SessionData.qml @@ -662,8 +662,8 @@ Singleton { } } onLoadFailed: error => { - if (!isGreeterMode && !hasTriedDefaultSettings) { - hasTriedDefaultSettings = true + if (!isGreeterMode && !hasTriedDefaultSession) { + hasTriedDefaultSession = true defaultSessionCheckProcess.running = true } } @@ -692,7 +692,7 @@ Singleton { id: defaultSessionCheckProcess command: ["sh", "-c", "CONFIG_DIR=\"" + _stateDir - + "/DankMaterialShell\"; if [ -f \"$CONFIG_DIR/default-session.json\" ] && [ ! -f \"$CONFIG_DIR/session.json\" ]; then cp \"$CONFIG_DIR/default-session.json\" \"$CONFIG_DIR/session.json\" && echo 'copied'; else echo 'not_found'; fi"] + + "/DankMaterialShell\"; if [ -f \"$CONFIG_DIR/default-session.json\" ] && [ ! -f \"$CONFIG_DIR/session.json\" ]; then cp --no-preserve=mode \"$CONFIG_DIR/default-session.json\" \"$CONFIG_DIR/session.json\" && echo 'copied'; else echo 'not_found'; fi"] running: false onExited: exitCode => { if (exitCode === 0) { @@ -838,4 +838,4 @@ Singleton { } } } -} \ No newline at end of file +} diff --git a/Common/SettingsData.qml b/Common/SettingsData.qml index 1a782d21..abd8180a 100644 --- a/Common/SettingsData.qml +++ b/Common/SettingsData.qml @@ -1555,7 +1555,7 @@ Singleton { id: defaultSettingsCheckProcess command: ["sh", "-c", "CONFIG_DIR=\"" + _configDir - + "/DankMaterialShell\"; if [ -f \"$CONFIG_DIR/default-settings.json\" ] && [ ! -f \"$CONFIG_DIR/settings.json\" ]; then cp \"$CONFIG_DIR/default-settings.json\" \"$CONFIG_DIR/settings.json\" && echo 'copied'; else echo 'not_found'; fi"] + + "/DankMaterialShell\"; if [ -f \"$CONFIG_DIR/default-settings.json\" ] && [ ! -f \"$CONFIG_DIR/settings.json\" ]; then cp --no-preserve=mode \"$CONFIG_DIR/default-settings.json\" \"$CONFIG_DIR/settings.json\" && echo 'copied'; else echo 'not_found'; fi"] running: false onExited: exitCode => { if (exitCode === 0) {