We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb14733 commit e98325cCopy full SHA for e98325c
safeeyes/utility.py
@@ -564,7 +564,11 @@ def initialize_platform():
564
parent_dir = str(Path(local_icon).parent)
565
566
if os.path.exists(global_icon):
567
- # This icon is already added to the /usr/share/icons/hicolor folder
+ # This icon is already added to the /usr/share/icons/hicolor folder.
568
+ # No need to create a link but we delete potentially stale symlinks
569
+ # from e.g. past runs from a virtualenv that has been removed in the
570
+ # meantime to avoid ending up with hard-to-debug SafeEyes without icons.
571
+ delete(local_icon)
572
continue
573
574
# Create the directory if not exists
0 commit comments