Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Allow launching Puter apps from the Puter Terminal! #77

Merged
merged 8 commits into from
Apr 12, 2024

Conversation

AtkinsSJ
Copy link
Contributor

@AtkinsSJ AtkinsSJ commented Apr 9, 2024

Relies on a bunch of changes in a bunch of other repos. 😆

Main thing remaining is that this shows up as a blank window when Terminal is running.

@AtkinsSJ AtkinsSJ marked this pull request as draft April 9, 2024 22:01
The shell isn't visible, so it doesn't need these remnants from
Terminal.
`process` only exists when running in Node. Notably, `if (process)` is
still a ReferenceError, so the existing checks need modifying too.
Previously we were reading `config.source` and then removing the
trailing slash. However, this doesn't include the port, which we use
when running locally. `config['puter.api_origin']` is actually what we
want, which does have the port if it's set, and doesn't include the
trailing slash either.
@AtkinsSJ
Copy link
Contributor Author

AtkinsSJ commented Apr 12, 2024

I think this is complete now! Make sure to merge HeyPuter/terminal#9 at the same time.

The only missing part is that Phoenix shows up as a blank window instead of being headless. I have PRs on here and Puter which solve that, but I'm not convinced that's a good way of doing it so I'm keeping those separate.

As for launching apps, the support is basic: You launch them, you can't pass them any arguments, there's no stdio, and you immediately return to the shell prompt. But you can type app names and they run! (And they show up in which <APP> too.)

@AtkinsSJ AtkinsSJ marked this pull request as ready for review April 12, 2024 10:24
@AtkinsSJ AtkinsSJ changed the title WIP: Migrate to a child app of Terminal Allow launching Puter apps from the Puter Terminal! Apr 12, 2024
@CLAassistant
Copy link

CLAassistant commented Apr 12, 2024

CLA assistant check
All committers have signed the CLA.

@KernelDeimos KernelDeimos changed the base branch from trunk to monorepo-prep April 12, 2024 21:34
@KernelDeimos KernelDeimos merged commit 3102c8e into HeyPuter:monorepo-prep Apr 12, 2024
2 of 3 checks passed
@AtkinsSJ AtkinsSJ deleted the child-shell branch April 13, 2024 13:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants