Files
debian/modules/desktop.sh
2025-09-23 19:52:23 +02:00

31 lines
728 B
Bash
Executable File

#!/bin/bash
echo
echo " => Desktop"
echo
# Disable all managed interfaces excerpt loopback from /etc/network/interfaces file to allow NetworkManager to manage them
sed -i '/# The primary network interface/Q' /etc/network/interfaces
# Qt5ct and qt6ct configuration
grep -E "(export QT_QPA_PLATFORMTHEME=qt5ct)" /etc/environment > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "export QT_QPA_PLATFORMTHEME=qt5ct" >> /etc/environment
fi
# Copy user config files
if [ ! -d /etc/skel/.config ]; then
mkdir /etc/skel/.config
fi
cp -r config/. /etc/skel/.config
for f in /home/*
do
if [ ! -d $f/.config ]; then
mkdir $f/.config
fi
cp -r config/. $f/.config
chown -R ${f##*/}:${f##*/} $f/.config
done