Skip to content

Commit

Permalink
DRYer
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 15, 2024
1 parent 7683a5d commit f3112d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kitty/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def macos_cmdline(argv_args: list[str]) -> list[str]:
if ans and ans[0] == 'kitty':
del ans[0]
if '-1' in ans or '--single-instance' in ans:
if '-1' in argv_args or '--single-instance' in argv_args:
if 'KITTY_SI_DATA' in os.environ:
# C code will already have setup single instance
log_error(
'--single-instance supplied in both command line arguments and macos-launch-services-cmdline,'
Expand Down

0 comments on commit f3112d6

Please sign in to comment.