Ensure the sddm config dir exists

This commit is contained in:
Manuel Thalmann 2023-06-02 20:46:20 +02:00
parent 9d069eae4f
commit b984d2e36b

View file

@ -1,6 +1,9 @@
#!/bin/bash
configDir="/etc/sddm.conf.d";
sudo systemctl enable sddm;
mkdir -p "$configDir";
{
echo "[General]";
echo "DisplayServer=wayland";
@ -8,4 +11,4 @@ sudo systemctl enable sddm;
echo "";
echo "[Wayland]";
echo "CompositorCommand=kwin_wayland --no-lockscreen --inputmethod maliit-keyboard";
} | sudo tee /etc/sddm.conf.d/10-wayland.conf;
} | sudo tee "$configDir/10-wayland.conf";