aerothemeplasma/compile.sh
wackyideas 6ff6ef2e12 Improve libplasma installation method
Up until now compiling libplasma modifications was rather violent as it
would cause both plasmashell and kwin to crash (the latter is
potentially destructive if running a Wayland session), leaving the user
with a potentially unstable state where plasmashell will start to
crashloop until the entire system reboots.

With this commit, the replacement of patched library files is deferred
until the system restarts, by using a temporary systemd service that
performs the replacement of files before Plasma starts, leading to
no crashes during the install or update process.
2025-10-20 17:37:54 +02:00

49 lines
982 B
Bash
Executable file

#!/bin/bash
CUR_DIR=$(pwd)
USE_SCRIPT="install.sh"
if [[ -z "$(command -v cmake)" ]]; then
echo "CMake not found. Stopping."
exit
fi
if [[ -z "$(command -v ninja)" ]]; then
if [[ -z "$(command -v make)" ]]; then
echo "Neither Ninja or GNU Make were found. Stopping"
exit
fi
fi
cd "$PWD/misc/libplasma"
sh $USE_SCRIPT $@
cd "$CUR_DIR"
#echo "Compiling plasmoids..."
#for filename in "$PWD/plasma/plasmoids/src/"*; do
# cd "$filename"
# echo "Compiling $(pwd)"
# sh $USE_SCRIPT
# echo "Done."
# cd "$CUR_DIR"
#done
echo "Compiling SMOD decorations..."
cd "$PWD/kwin/decoration"
sh $USE_SCRIPT $@
cd "$CUR_DIR"
echo "Done."
echo "Compiling KCM loader..."
cd "$PWD/plasma/aerothemeplasma-kcmloader"
sh $USE_SCRIPT $@
cd "$CUR_DIR"
echo "Done."
echo "Compiling KWin effects..."
for filename in "$PWD/kwin/effects_cpp/"*; do
cd "$filename"
echo "Compiling $(pwd)"
sh $USE_SCRIPT $@
echo "Done."
cd "$CUR_DIR"
done