Support Ubuntu22.04/Debian11 Kde Plasma

This commit is contained in:
orangepi-xunlong
2023-03-14 19:52:17 +08:00
parent e155848f4c
commit 1903a751e7
17 changed files with 1009 additions and 7 deletions

View File

@@ -48,10 +48,33 @@ install_balenaEtcher(){
family_tweaks_s() {
rsync -a --chown=root:root "${EXTER}"/packages/bsp/rk3588/* ${SDCARD}/
if [[ ${SELECTED_CONFIGURATION} == desktop && ${DESKTOP_ENVIRONMENT} == kde-plasma ]]; then
rsync -a --chown=root:root --exclude=etc/pulse "${EXTER}"/packages/bsp/rk3588/* ${SDCARD}/
cat > "${SDCARD}"/etc/profile.d/kde_env.sh <<- __EOF__
#!/bin/bash
export KWIN_COMPOSE=X
__EOF__
cat > "${SDCARD}"/home/orangepi/.config/kwalletrc <<- __EOF__
[Wallet]
Enabled=false
__EOF__
if [[ ${RELEASE} == bullseye ]]; then
cat > "${SDCARD}"/home/orangepi/.config/kwinrc <<- __EOF__
[Compositing]
Backend=XRender
OpenGLIsUnsafe=false
__EOF__
fi
else
rsync -a --chown=root:root "${EXTER}"/packages/bsp/rk3588/* ${SDCARD}/
fi
[[ ${RELEASE} == jammy ]] && rm ${SDCARD}/etc/profile.d/orangepi-ssh-title.sh # for adbd
if [[ -f "${SDCARD}"/etc/profile.d/im-config_wayland.sh && ${DESKTOP_ENVIRONMENT} != gnome ]]; then
if [[ -f "${SDCARD}"/etc/profile.d/im-config_wayland.sh && ${DESKTOP_ENVIRONMENT} =~ xfce|kde-plasma ]]; then
chroot $SDCARD /bin/bash -c "rm /etc/profile.d/im-config_wayland.sh" # for adbd
fi