Skip to content

Support for Termux:X11 (Termux + X11 server) #33

@Jobians

Description

@Jobians

I am trying to run @webviewjs/webview inside Termux on Android with an X11 server (e.g., XServer XSDL or VNC).

Currently, when I run a minimal WebView example:

export DISPLAY=:0
export WRY_BACKEND=x11
node test.js

I get a crash:

thread '' panicked at ... tao-0.34.5/src/platform_impl/android/mod.rs:93:42
called Option::unwrap() on a None value
fatal runtime error: failed to initiate panic, error 5, aborting

It seems the library detects Android and attempts to use the Android backend, which expects a full Android Activity. Termux does not provide an Activity, so it crashes, even though an X11 environment is available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions