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

Are there any plans to support something like termux-x11? #305

Open
Dani3I opened this issue Nov 19, 2023 · 4 comments
Open

Are there any plans to support something like termux-x11? #305

Dani3I opened this issue Nov 19, 2023 · 4 comments

Comments

@Dani3I
Copy link

Dani3I commented Nov 19, 2023

For termux there is project called termux-x11. It allows to show gui (for example xfce4) without using VNC etc.
Project is available here: https://github.com/termux/termux-x11

Are there any plans to support something like this on nix-on-droid (or maybe it is already possible)?

@t184256
Copy link
Collaborator

t184256 commented Nov 19, 2023

Pull requests are welcome; I, personally, don't plan to work on this anytime soon.

@Resonious
Copy link

Resonious commented Dec 22, 2023

It's actually possible to use termux-x11 out of the box if you add -listen tcp to your termux-x11 call. It's a bit absurd, but here's the step-by-step:

  1. In regular Termux, run termux-x11 :1 -listen tcp -xstartup "dbus-launch --exit-with-session i3" (replace i3 with whatever you want to use as desktop)
  2. Open nix-on-droid and run a gui app with DISPLAY=127.0.0.1:1. Example: nix-shell -p gedit, DISPLAY=127.0.0.1:1 gedit
  3. Open the termux-x11 Android app and you should see your GUI from nix.

You can automate this a little by writing the termux-x11 invocation to a script, and adding export DISPLAY=127.0.0.1:1 to your .bash_profile in nix-on-droid.

Still, it'd be cool if we could do termux-x11 without needing vanilla Termux installed at all. The termux-x11 tool appears to be very simple https://github.com/termux/termux-x11/blob/master/termux-x11 - if we can somehow expose /system/bin/app_process in nix-on-droid then it might "just work" 🤔

@expenses
Copy link

I could modify termux-x11 so that it uses com.termux.nix.x11 instead of com.termux.x11 and that might work. Ideally we wouldn't have a duplicate app though.

@t184256
Copy link
Collaborator

t184256 commented Jul 23, 2024 via email

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

No branches or pull requests

4 participants