Application fails to launch after extraction - missing execute permissions
Description
The CapsLockSwitcher.app downloaded from the releases section fails to launch with the error:
The application "CapsLockSwitcher.app" can't be opened.
Root cause
The ZIP archive contains incorrect file permissions. The main executable lacks execute permissions:
$ unzip -l CapsLockSwitcher.app.zip
Archive: CapsLockSwitcher.app.zip
...
-rw---- 0.0 fat 388144 b- defN 25-Apr-02 02:29 CapsLockSwitcher.app/Contents/MacOS/CapsLockSwitcher
...
The file CapsLockSwitcher.app/Contents/MacOS/CapsLockSwitcher has permissions -rw---- (0600) instead of -rwx------ (0700).
Workaround
chmod +x CapsLockSwitcher.app/Contents/MacOS/CapsLockSwitcher
Expected behavior
The executable should have execute permissions set in the ZIP archive to allow the app to launch immediately after extraction.
Environment
Application fails to launch after extraction - missing execute permissions
Description
The CapsLockSwitcher.app downloaded from the releases section fails to launch with the error:
Root cause
The ZIP archive contains incorrect file permissions. The main executable lacks execute permissions:
The file
CapsLockSwitcher.app/Contents/MacOS/CapsLockSwitcherhas permissions-rw----(0600) instead of-rwx------(0700).Workaround
Expected behavior
The executable should have execute permissions set in the ZIP archive to allow the app to launch immediately after extraction.
Environment