I made a script using Termux:Widget to start an xfce4 session, but it simply says, "Unable to contact settings server
could not connect: Connection refused"
What's weird is that sourcing the script manually in termux works just fine without any problems.
here's the script:
#!/bin/bash
termux-x11 -xstartup "proot-distro login archlinux --user tarek --shared-tmp -- bash -c \"DISPLAY=:0 dbus-launch --exit-with-session startxfce4\""
I have xorg and xfce4 installed in an arch linux proot.