Skip to content

The single-file CLI starts whatever akou.app is installed, even an old one #455

Closed

Description

@GeiserX

On macOS the single-file CLI starts the installed app when no akou is running: defaultLaunch in src/main/cli/client.ts opens /Applications/akou.app (or ~/Applications/akou.app) through open -a, whatever version that app is. A first akou config set with a fresh AKOU_HOME therefore started an old 0.6.2 app on a test Mac, and the CLI then talked to it.

What it should do: check the installed app's version (its Info.plist CFBundleShortVersionString) before launching it, and refuse with a clear message naming both versions when the app is older than the CLI, or at least warn. A command that only writes the config file may not need to launch anything.

Found while testing #436.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions