From a895eb5b0ba18ee826a1d21006b972b05af33c8e Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 17 Aug 2020 12:22:55 +0000 Subject: [PATCH] Edit configuration in "offline" mode when starting Electrum Otherwise this command fails because "Daemon not running", and thus we abort our wrapper script and Electrum won't start. refs #17828 --- config/chroot_local-includes/usr/local/bin/electrum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/chroot_local-includes/usr/local/bin/electrum b/config/chroot_local-includes/usr/local/bin/electrum index 6c1e9d42f6..e3f9b116e5 100755 --- a/config/chroot_local-includes/usr/local/bin/electrum +++ b/config/chroot_local-includes/usr/local/bin/electrum @@ -35,7 +35,7 @@ def main(*args): # Disable update checking for all users (even those who made their config # persistent before we changed this value in the default config), because # users can't easily update to a new version anyway if it's not in Debian. - subprocess.run(['/usr/bin/electrum', 'setconfig', 'check_updates', 'false'], check=True, stdout=subprocess.DEVNULL) + subprocess.run(['/usr/bin/electrum', '--offline', 'setconfig', 'check_updates', 'false'], check=True, stdout=subprocess.DEVNULL) os.execv('/usr/bin/electrum', ['/usr/bin/electrum'] + list(args)) -- GitLab