From 231c6b9232a7163e11090a43e2d844cfba343a68 Mon Sep 17 00:00:00 2001 From: piotr Date: Mon, 2 Jan 2023 21:18:50 +0100 Subject: [PATCH] add restart delay --- LICENSE | 2 +- nwg_panel/main.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 8fe0ed5..b16ab9a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021-2022 Piotr Miller & Contributors +Copyright (c) 2021-2023 Piotr Miller & Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/nwg_panel/main.py b/nwg_panel/main.py index 267ea4b..2b8b039 100644 --- a/nwg_panel/main.py +++ b/nwg_panel/main.py @@ -104,6 +104,7 @@ def rt_sig_handler(sig, frame): def restart(): + time.sleep(5) subprocess.Popen(restart_cmd, shell=True)