Skip to content

Missing execute permissions #3

@iatsiuk

Description

@iatsiuk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions