#failing to start xfce4 with a Termux:Widget shortcut

1 messages · Page 1 of 1 (latest)

turbid crescent
#

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.

#

Here it is working when sourcing the script

thorny ivy
turbid crescent
#

I'll try that, thanks for the help.