From 9ed748db868c040d75928b045a973a7df9d458b5 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Thu, 18 Jan 2018 08:14:36 +1100 Subject: [PATCH] load the Settings in onionshare/__init__.py later, so that when saving slug, the private_key/hidservauth string have already been saved by the Onion object --- onionshare/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionshare/__init__.py b/onionshare/__init__.py index 78f754fc..e7e34ed9 100644 --- a/onionshare/__init__.py +++ b/onionshare/__init__.py @@ -79,7 +79,6 @@ def main(cwd=None): settings = Settings(config) - settings.load() # Start the Onion object onion = Onion() @@ -129,6 +128,7 @@ def main(cwd=None): app.shutdown_timer.start() # Save the web slug if we are using a persistent private key + settings.load() if settings.get('save_private_key'): if not settings.get('slug'): settings.set('slug', web.slug)