Commit ca4eb9bf authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Avoid loading images specified on cli twice on big sur

parent abf10fd4
......@@ -189,6 +189,14 @@ class FSLeyesApp(wx.App):
# queue the files to open them later
# in SetOverlayListAndDisplayContext
if self.__overlayList is None:
# On certain systems (observed on Big Sur), when
# files are passed as command-line arguments, they
# are passed to MacOpenFiles. We don't want that,
# because cli arguments are parsed separately. So
# we remove dupes here.
filenames = [f for f in filenames if f not in sys.argv]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment