File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -546,6 +546,7 @@ def initialize_platform():
546546 delete (desktop_entry )
547547
548548 # Create a link
549+ logging .debug (f"Create desktop entry at { desktop_entry } " )
549550 try :
550551 os .symlink (SYSTEM_DESKTOP_FILE , desktop_entry )
551552 except OSError :
@@ -568,7 +569,9 @@ def initialize_platform():
568569 # No need to create a link but we delete potentially stale symlinks
569570 # from e.g. past runs from a virtualenv that has been removed in the
570571 # meantime to avoid ending up with hard-to-debug SafeEyes without icons.
571- delete (local_icon )
572+ if os .path .lexists (local_icon ):
573+ logging .debug (f"Delete duplicate icon link at { local_icon } " )
574+ delete (local_icon )
572575 continue
573576
574577 # Create the directory if not exists
@@ -578,6 +581,7 @@ def initialize_platform():
578581 delete (local_icon )
579582
580583 # Add a link for the icon
584+ logging .debug (f"Create icon link at { local_icon } " )
581585 try :
582586 os .symlink (system_icon , local_icon )
583587 except OSError :
You can’t perform that action at this time.
0 commit comments