镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

mac run console app #384

Open
Open

Description

@akhilmanikandan

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:

How to run packaged console app in terminal for mac

Currently when console app runs in mac no console or terminal is opened just icon appears in dock.

Activity

  1. fvarrui commented on Dec 13, 2023

    @fvarrui
    Collaborator

    Hi @akhilmanikandan!
    Maybe is open /path/to/My.app what you are looking for?

  2. akhilmanikandan commented on Dec 13, 2023

    @akhilmanikandan
    Author

    my java app is a console application, i realise now to open in console mode i have to put the path My.app/Content/MacOs/Universalapplicationstub

    I was expecting like in windows when you double click it opens up in a terminal by default.

    any way to change that behavior

  3. fvarrui commented on Feb 29, 2024

    @fvarrui
    Collaborator

    my java app is a console application, i realise now to open in console mode i have to put the path My.app/Content/MacOs/Universalapplicationstub

    I was expecting like in windows when you double click it opens up in a terminal by default.

    any way to change that behavior

    Not sure, maybe we can include a terminal mode for macOS, so when double clicking your app, universalJavaApplicationStub startuo script opens a terminal and runs your app inside

  4. fvarrui commented on Oct 4, 2026

    @fvarrui
    Collaborator

    Merging #404 into this one, as both are about console apps on macOS:

    • This issue: double-clicking the app should open it in a Terminal window, like a console EXE on Windows.
    • How to make a clean terminal app for MacOS? #404: package a command-line tool without an .app, installed somewhere in PATH (e.g. /usr/local/bin), like the DEB on GNU/Linux.

    Workaround for now: run the launcher from a terminal (My.app/Contents/MacOS/universalJavaApplicationStub) or use open -a Terminal My.app/Contents/MacOS/universalJavaApplicationStub. The GNU/Linux equivalent is #345.

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

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions