mirror of
https://github.com/termux/termux-packages.git
synced 2025-06-03 02:35:16 +00:00
Running `sv up tx11-xfce4` and `sv down tx11-xfce4` can then be used to start and stop an xfce4 session inside termux-x11. xfce4 needs to be installed for this to work.
8 lines
309 B
Bash
8 lines
309 B
Bash
#!@TERMUX_PREFIX@/bin/sh
|
|
|
|
# Create a file for DISPLAY number. Users can do something like
|
|
# export DISPLAY=":$(cat $PREFIX/var/run/tx11-xfce4.display)"
|
|
# to use it.
|
|
exec 3<> @TERMUX_PREFIX@/var/run/tx11-xfce4.display
|
|
exec termux-x11 -displayfd 3 -xstartup "dbus-launch --exit-with-session xfce4-session" 2>&1
|