[neon/neon/calamares-settings/Neon/unstable] /: enable plasma bigscreen

Jonathan Esk-Riddell null at kde.org
Mon Nov 14 14:38:18 GMT 2022


Git commit 27b33aa04905436ada7286070555e8b1e91ad410 by Jonathan Esk-Riddell.
Committed on 14/11/2022 at 14:38.
Pushed by jriddell into branch 'Neon/unstable'.

enable plasma bigscreen

A  +6    -0    bigscreen/calamares/bigscreen/modules/plasma-bigscreen-sddm-config.conf
A  +11   -0    bigscreen/usr/bin/plasma-bigscreen-sddm-config
M  +6    -0    desktop/usr/bin/calamares

https://invent.kde.org/neon/neon/calamares-settings/commit/27b33aa04905436ada7286070555e8b1e91ad410

diff --git a/bigscreen/calamares/bigscreen/modules/plasma-bigscreen-sddm-config.conf b/bigscreen/calamares/bigscreen/modules/plasma-bigscreen-sddm-config.conf
new file mode 100755
index 0000000..22112bd
--- /dev/null
+++ b/bigscreen/calamares/bigscreen/modules/plasma-bigscreen-sddm-config.conf
@@ -0,0 +1,6 @@
+# SPDX-FileCopyrightText: 2022 Jonathan Esk-Riddell <jr at jriddell.org>
+# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+---
+timeout: 60
+script:
+    - plasma-bigscreen-sddm-config
diff --git a/bigscreen/usr/bin/plasma-bigscreen-sddm-config b/bigscreen/usr/bin/plasma-bigscreen-sddm-config
new file mode 100755
index 0000000..876d7d1
--- /dev/null
+++ b/bigscreen/usr/bin/plasma-bigscreen-sddm-config
@@ -0,0 +1,11 @@
+#!/bin/sh
+# SPDX-FileCopyrightText: 2022 Jonathan Esk-Riddell <jr at jriddell.org>
+# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+
+set -ex
+
+echo "I: Enabling Plasma Bigscreen wayland by default"
+cat << CONF > /etc/sddm.conf
+[Autologin]
+Session=/usr/share/wayland-sessions/plasma-bigscreen-wayland.desktop
+CONF
diff --git a/desktop/usr/bin/calamares b/desktop/usr/bin/calamares
index 344cf1a..78720f1 100755
--- a/desktop/usr/bin/calamares
+++ b/desktop/usr/bin/calamares
@@ -17,6 +17,12 @@ if [ -f /usr/bin/startplasmamobile ]; then
   export XDG_CONFIG_DIRS=/calamares/mobile:$XDG_CONFIG_DIRS
 fi
 
+if [ -f /usr/bin/plasma-bigscreen-wayland ]; then
+  echo "Enabling Calamares for Plasma Bigscreen"
+  export XDG_DATA_DIRS=/calamares/bigscreen:$XDG_DATA_DIRS
+  export XDG_CONFIG_DIRS=/calamares/bigscreen:$XDG_CONFIG_DIRS
+fi
+
 # Pinebook is not installed by default and only available on arm. Stack it on
 # top when it is available.
 if [ -d /calamares/pinebook ]; then


More information about the Neon-commits mailing list