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

Fix panic on android when run under termux (fixes #53) #54

Merged
merged 2 commits into from Nov 8, 2022
Merged

Conversation

amodm
Copy link
Owner

@amodm amodm commented Nov 6, 2022

See original issue #53. The problem seems to be that programs run under termux do not necessarily have android context created, and so let ctx = ndk_context::android_context(); panics.

This PR checks if we might be running in a termux environment (determined by the presence of env var TERMUX_VERSION). If we are, then we use termux-open command to open the browser, else we fall back to android context based approach.

@amodm amodm linked an issue Nov 6, 2022 that may be closed by this pull request
@amodm amodm mentioned this pull request Nov 7, 2022
@amodm amodm merged commit 50b3cae into main Nov 8, 2022
@amodm amodm deleted the android-termux branch November 8, 2022 11:38
@amodm
Copy link
Owner Author

amodm commented Nov 8, 2022

This is now released as v0.8.2

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

Successfully merging this pull request may close these issues.

panics on termux
1 participant