mirror of
https://github.com/termux/termux-packages.git
synced 2025-06-03 02:35:16 +00:00
Install termux-services and then run `sv up tx11` to start the service, or sv-enable tx11 to run it by default. Requested in termux/termux-x11#800.
8 lines
239 B
Bash
8 lines
239 B
Bash
#!@TERMUX_PREFIX@/bin/sh
|
|
|
|
# Create a file for DISPLAY number. Users can do something like
|
|
# export DISPLAY=":$(cat $PREFIX/var/run/tx11.display)"
|
|
# to use it.
|
|
exec 3<> @TERMUX_PREFIX@/var/run/tx11.display
|
|
exec termux-x11 -displayfd 3 2>&1
|