From edd6d76a580b46db2f0b0448085ba374272dc07b Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Tue, 21 Feb 2023 19:44:13 +0100 Subject: [PATCH] :wrench: Do not attempt to migrate anything if on a new installation --- src/migrate.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/migrate.js b/src/migrate.js index 29c577f..5814c82 100644 --- a/src/migrate.js +++ b/src/migrate.js @@ -27,6 +27,12 @@ async function fromVersion26() { .executeCommand(['dconf', 'dump', '/org/gnome/shell/extensions/burn-my-windows/']) .catch(r => utils.debug('Failed to get old settings for effect migration: ' + r)) .then(r => { + // If there were no settings before, we do not have to migrate anything. Just use + // the new defaults. + if (r == '') { + return; + } + utils.debug('Starting Burn-My-Windows profile migration (old version <= 26)!'); // We use this to write the new profiles.