From 7b9654ee51488fb2a50dc3d19429f149a4736561 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 22 Dec 2025 00:08:24 +0100 Subject: [PATCH 1/2] __main__: Move handling of SIGINT into main function .. so that it affects bin/safeeyes binary, too. --- safeeyes/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/safeeyes/__main__.py b/safeeyes/__main__.py index 53e0a08e..2d8ac43d 100755 --- a/safeeyes/__main__.py +++ b/safeeyes/__main__.py @@ -30,6 +30,8 @@ def main(): """Start the Safe Eyes.""" + signal.signal(signal.SIGINT, signal.SIG_DFL) # Handle Ctrl + C + system_locale = translations.setup() config = Config.load() @@ -39,5 +41,4 @@ def main(): if __name__ == "__main__": - signal.signal(signal.SIGINT, signal.SIG_DFL) # Handle Ctrl + C main() From e98325c187b9eee1e1706b320560f146254a487b Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 22 Dec 2025 22:21:24 +0100 Subject: [PATCH 2/2] Clean up (potentially stale) icon symlinks to avoid icon issues --- safeeyes/utility.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/safeeyes/utility.py b/safeeyes/utility.py index 847615da..0f0149c4 100644 --- a/safeeyes/utility.py +++ b/safeeyes/utility.py @@ -564,7 +564,11 @@ def initialize_platform(): parent_dir = str(Path(local_icon).parent) if os.path.exists(global_icon): - # This icon is already added to the /usr/share/icons/hicolor folder + # This icon is already added to the /usr/share/icons/hicolor folder. + # No need to create a link but we delete potentially stale symlinks + # from e.g. past runs from a virtualenv that has been removed in the + # meantime to avoid ending up with hard-to-debug SafeEyes without icons. + delete(local_icon) continue # Create the directory if not exists