Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion safeeyes/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -39,5 +41,4 @@ def main():


if __name__ == "__main__":
signal.signal(signal.SIGINT, signal.SIG_DFL) # Handle Ctrl + C
main()
6 changes: 5 additions & 1 deletion safeeyes/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down