Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching external FAPs from the serial CLI #2502

Closed
str4d opened this issue Mar 17, 2023 · 4 comments
Closed

Launching external FAPs from the serial CLI #2502

str4d opened this issue Mar 17, 2023 · 4 comments

Comments

@str4d
Copy link

str4d commented Mar 17, 2023

The loader CLI can be used to run applications that are built into the firmware. However, it does not appear to be possible to run applications built as external FAPs. When such an application is running, the CLI reports:

> loader info
Running application: Applications

and opening the FAP directly doesn't work:

> loader open /path/to/the.fap
/path/to/the.fap doesn't exist

It would be useful to be able to run external FAPs via the serial CLI, and be able to provide them arguments. If this is already possible and I just haven't found out how, it would be useful to update the documentation to explain how to achieve this.

@DrZlo13
Copy link
Member

DrZlo13 commented Mar 17, 2023

You can use loader open Applications /path/to/the.fap

@str4d
Copy link
Author

str4d commented Mar 17, 2023

Yay, thanks! I've confirmed this works, so it just needs to be documented. IDK if there's a nice way to expose the application arguments inside the loader CLI?

It also doesn't appear to support arguments? loader open Applications /path/to/the.fap arg results in the Applications app running and displaying:

Error
Preload failed
Invalid file

@hedger
Copy link
Member

hedger commented Mar 17, 2023

Passing arguments to .fap files is not supported at the moment. You can create a separate issue on that.

@hedger hedger closed this as completed Mar 17, 2023
@str4d
Copy link
Author

str4d commented Mar 17, 2023

Passing arguments to .fap files is not supported at the moment. You can create a separate issue on that.

Done: #2505.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants