From 865262f655118811a142b1f0ef9aba10e5121be3 Mon Sep 17 00:00:00 2001 From: luisbocanegra Date: Tue, 26 Apr 2022 20:13:31 -0500 Subject: [PATCH] Only kill existing instance if a new one will actually be created --- kde-material-you-colors | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kde-material-you-colors b/kde-material-you-colors index 48664ed..3971e69 100644 --- a/kde-material-you-colors +++ b/kde-material-you-colors @@ -6,8 +6,6 @@ import argparse import utils from schemeconfigs import ThemeConfig if __name__ == '__main__': - #kill existing instance if found - utils.kill_existing() # Make sure the schemes path exists if not os.path.exists(utils.USER_SCHEMES_PATH): os.makedirs(utils.USER_SCHEMES_PATH) @@ -54,6 +52,8 @@ if __name__ == '__main__': args = parser.parse_args() # Get config from file config = utils.Configs(args) + #kill existing instance if found + utils.kill_existing() options_old = config.options logging.debug(f"Config: {options_old}") icons_old = [options_old['iconslight'], options_old['iconsdark']]