florentbr / OWON-VDS1022

Unofficial release for the OWON VDS1022/I Oscilloscope
265 stars 45 forks source link

Application won't start on macOS Ventura #81

Open etn406 opened 1 year ago

etn406 commented 1 year ago

Hello, I installed the macOS version on my macbook (M1 Pro, Ventura 13.3.1) but the application is not visible in the application grid, and when I try to start it manually from the command line I get this error:

$ open -a /Applications/OWON\ VDS1022.app
The application /Applications/OWON VDS1022.app cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10827 "kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=4101, _LSFunction=_LSOpenStuffCallLocal}

However I can start it with the launch file:

$ /Applications/OWON\ VDS1022.app/Contents/MacOS/launch
/Applications/OWON VDS1022.app/Contents/MacOS/launch: line 1: -e: command not found
env: Mac OS X, Java 17.0.6 aarch64
app dir: /Applications/OWON VDS1022.app/Contents/Resources
user dir: /Users/etn/Library/Application Support/OWON VDS1022
locale: en, fr_FR, false

And then the window shows up.

If I can run any more test / give you more logs, tell me!

florentbr commented 1 year ago

The error line 1: -e: command not found is likely due to the script being launched by sh instead of bash.
Try to run bash /Applications/OWON\ VDS1022.app/Contents/MacOS/launch to see if the error is still there.
Could be an issue with the shebang, try with #!/usr/bin/env bash in the launch file.