fix: Handle running CLI in headless environment#95
Merged
LisoUseInAIKyrios merged 1 commit intoMorpheApp:devfrom Mar 28, 2026
Merged
fix: Handle running CLI in headless environment#95LisoUseInAIKyrios merged 1 commit intoMorpheApp:devfrom
LisoUseInAIKyrios merged 1 commit intoMorpheApp:devfrom
Conversation
Contributor
Author
|
Is this fix enough? Or do we need to check for more stuff? |
Contributor
|
If what is here fixes the problem then this looks great. |
Contributor
Author
|
It does fix it. I have a local ubunut server running and when I tried to run the command that the user had provided, I had the same error. So, essentially it was a "trying to run gui in headless error". This got me wondering if there are any other ways people are trying to run the cli in and we are failing to acknowledge that properly? |
Contributor
|
What other ways might they run cli? I think everything may be covered now. |
Contributor
Author
|
fair, I don't think there is any either |
2 tasks
github-actions bot
pushed a commit
that referenced
this pull request
Mar 28, 2026
## [1.6.3-dev.3](v1.6.3-dev.2...v1.6.3-dev.3) (2026-03-28) ### Bug Fixes * Handle running CLI in headless environment ([#95](#95)) ([70f2952](70f2952))
AzyrRuthless
pushed a commit
to AzyrRuthless/morphe-cli
that referenced
this pull request
Mar 29, 2026
github-actions bot
pushed a commit
to AzyrRuthless/morphe-cli
that referenced
this pull request
Mar 29, 2026
## [1.4.1-dev.1](v1.4.0...v1.4.1-dev.1) (2026-03-29) ### Bug Fixes * Handle patching XAPK files ([MorpheApp#93](https://github.com/AzyrRuthless/morphe-cli/issues/93)) ([1dc7cfe](1dc7cfe)) * Handle running CLI in headless environment ([MorpheApp#95](https://github.com/AzyrRuthless/morphe-cli/issues/95)) ([1e30218](1e30218)) * Update to latest Patcher ([2414325](2414325)) * Update to Patcher 1.3.3 ([ad7a0a0](ad7a0a0))
github-actions bot
pushed a commit
to AzyrRuthless/morphe-cli
that referenced
this pull request
Mar 29, 2026
## [1.4.1](v1.4.0...v1.4.1) (2026-03-29) ### Bug Fixes * Handle patching XAPK files ([MorpheApp#93](https://github.com/AzyrRuthless/morphe-cli/issues/93)) ([1dc7cfe](1dc7cfe)) * Handle running CLI in headless environment ([MorpheApp#95](https://github.com/AzyrRuthless/morphe-cli/issues/95)) ([1e30218](1e30218)) * Update to latest Patcher ([2414325](2414325)) * Update to Patcher 1.3.3 ([ad7a0a0](ad7a0a0))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the jar file is run, it checks if it is running in a headless environment. In case it is, it falls back to cli entry even if no args are passed (this would previously try to load the gui, fail and then throw an error).