-1

I set LSMultipleInstancesProhibited to YES, but if launch executable file(/Contents/MacOS/) in terminal, the macOS app can be run multiplely. for example: first terminal can run first executable file, second terminal can run second executable file. Please help. Thanks in advance.

marky1
  • 21
  • 2
  • This question is related to MacOS. SO is for programming. Also, your question doesn't have details. People who read your question won't know what you are looking for. Give details, be specific. – garakchy Jan 28 '23 at 07:44
  • Running from terminal bypasses LaunchServices. That’s why, nothing unusual. – Richard Barber Jan 28 '23 at 17:49

1 Answers1

0

You could get the information of your own app and check if there is already running instance in the system. Programmatically check if a process is running on Mac