From 67e0953c57c34139531312f72e1d278114670f9f Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 20 Nov 2022 21:52:24 +0530 Subject: [PATCH] pratham-setup: better handle KDE support for systemd-boot --- scripts/pratham-setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/pratham-setup.sh b/scripts/pratham-setup.sh index 232183c..ade0e1a 100644 --- a/scripts/pratham-setup.sh +++ b/scripts/pratham-setup.sh @@ -29,7 +29,11 @@ fi # apply a fix for KDE preventing shutdown/reboots # this is because I am using systemd-boot instead of GRUB/something else # https://invent.kde.org/plasma/plasma-workspace/-/wikis/Plasma-and-the-systemd-boot -kwriteconfig5 --file startkderc --group General --key systemdBoot true +systemctl --user is-active --quiet service plasma-plasmashell.service +if [[ $? -ne 0 ]]; then + kwriteconfig5 --file startkderc --group General --key systemdBoot true + systemctl --user enable plasma-plasmashell.service +fi ################################################################################ # SSH KEYS