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

@@ -1,5 +1,5 @@
Package: cn.flamescion.bookworm-compatibility-mode
Version: 12.1.10
Version: 12.1.11
Section: misc
Priority: optional
Depends: bubblewrap

View File

@@ -3,7 +3,7 @@ Categories=utils
Exec=/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bin/bookworm-run %U
Icon=cn.flamescion.bookworm-compatibility-mode
Name=Bookworm CM
Name[zh_CN]=书虫兼容环境
Name[zh_CN]=书虫兼容模式
StartupNotify=true
Type=Application
Terminal=true

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