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

[Feature]: Support "termux:" scheme when temux-scheme-opener script is created. #3945

Open
c6401 opened this issue May 8, 2024 · 0 comments

Comments

@c6401
Copy link

c6401 commented May 8, 2024

Feature description

To register "termux:" scheme, which will be handled by bin/termux-scheme-opener shell script, but only in case if user created one. If the script is not present, there probably should be a dialog telling so. The script should receive the passed URL with scheme (and possibly the sender app name).

Security:
Disabled by default, till termux-scheme-opener script is created, users can deploy their own ways to restrict this action such as passing some token in the url "termux://myaction?token=secret" to allow the command or creating a termux shell question hot to act on open.

Reasoning:
It will allow creating mobile browser userscripts or bookmarklets to send some actions from the browser to termux.

Additional information

Registering some custom scheme to run handler scripts is a popular automation technique on desktop operations systems. Example:
https://github.com/alphapapa/org-protocol-capture-html

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

1 participant