support-non-dde-interaction

This commit is contained in:
2023-09-13 14:46:20 +08:00
parent 18eb44c8c3
commit 741c0512d8
8 changed files with 1085 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ tar -xvf $chrootEnvPath.tar.xz -C /opt/apps/$PKGNAME/files/
fi
echo "Update the flamescion container tools"
tar -xvf `dirname $chrootEnvPath`/flamescion-container-tools.tar.xz -C $chrootEnvPath
cp -r `dirname $chrootEnvPath`/flamescion-container-tools/ $chrootEnvPath
non_root_user=$(who | awk '{print $1}' | head -n 1)
@@ -177,6 +177,10 @@ printf "%s:%s" "${container_user_name}" "${temporary_password}" | chpasswd -e
printf "%s:" "root" | chpasswd -e
printf "%s:" "${container_user_name}" | chpasswd -e
## init host-spawn
unlink /flamescion-container-tools/bin-override/host-spawn
ln -sf /flamescion-container-tools/bin-override/host-spawn-`arch` /flamescion-container-tools/bin-override/host-spawn
EOFFFFFF
chmod +x $chrootEnvPath/init.sh

View File

@@ -0,0 +1,6 @@
#!/bin/bash
if [ "$1" = "open" ];then
xdg-open ${@:2}
else
/usr/bin/gio $@
fi