From 3e371b67abd413f478b7c9c6a2c5c29c8c5c74d2 Mon Sep 17 00:00:00 2001
From: Holger Paradies <retabell@gmx.de>
Date: Sat, 10 May 2025 11:30:30 +0200
Subject: Include kanotix sddm config

Remove debian live sddm config
Provide config in kde_settings.conf
Session is handled by sddm itself
---
 .../etc/sddm.conf.d/kde_settings.conf              | 15 +++++++++
 .../lib/live/config/0086-sddm                      | 38 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 config/chroot_local-includes/etc/sddm.conf.d/kde_settings.conf
 create mode 100755 config/chroot_local-includes/lib/live/config/0086-sddm

diff --git a/config/chroot_local-includes/etc/sddm.conf.d/kde_settings.conf b/config/chroot_local-includes/etc/sddm.conf.d/kde_settings.conf
new file mode 100644
index 0000000..a0b06b2
--- /dev/null
+++ b/config/chroot_local-includes/etc/sddm.conf.d/kde_settings.conf
@@ -0,0 +1,15 @@
+[Autologin]
+Relogin=false
+Session=plasmax11
+User=kanotix
+
+[General]
+HaltCommand=
+RebootCommand=
+
+[Theme]
+Current=kanotix
+
+[Users]
+MaximumUid=60000
+MinimumUid=1000
diff --git a/config/chroot_local-includes/lib/live/config/0086-sddm b/config/chroot_local-includes/lib/live/config/0086-sddm
new file mode 100755
index 0000000..98da070
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/0086-sddm
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+. /usr/lib/live/config.sh
+
+## live-config(7) - System Configuration Components
+## Copyright (C) 2016-2020 The Debian Live team
+## Copyright (C) 2006-2015 Daniel Baumann <mail@daniel-baumann.ch>
+##
+## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
+## This is free software, and you are welcome to redistribute it
+## under certain conditions; see COPYING for details.
+
+
+#set -e
+
+Init ()
+{
+	# Checking if package is installed or already configured
+	if ! pkg_is_installed "sddm" || \
+	   component_was_executed "sddm_kanotix"
+	then
+		exit 0
+	fi
+
+	echo -n " sddm_kanotix"
+}
+
+Config ()
+{
+	# remove file created by 0085-sddm
+	rm -f /etc/sddm.conf
+
+	# Creating state file
+	touch /var/lib/live/config/sddm_kanotix
+}
+
+Init
+Config
-- 
cgit v1.0