From a091424bcc35ac4d1e7ac51b36486ac7b524be15 Mon Sep 17 00:00:00 2001 From: Michal Date: Sat, 30 Jul 2022 12:54:50 +0100 Subject: [PATCH] Added schema to disable lock screen in GNOME --- chrooted.sh | 1 + .../etc/systemd/system/crystal-gschema.service | 14 ++++++++++++++ .../schemas/99_crystal-iso.gschema.override | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 crystal/airootfs/etc/systemd/system/crystal-gschema.service create mode 100644 crystal/airootfs/usr/share/glib-2.0/schemas/99_crystal-iso.gschema.override diff --git a/chrooted.sh b/chrooted.sh index 1ac9868..394bfd9 100755 --- a/chrooted.sh +++ b/chrooted.sh @@ -19,6 +19,7 @@ chown -R crystal:crystal /home/crystal/ systemctl enable NetworkManager systemctl enable reflector systemctl enable gdm +systemctl enable crystal-gschema # Hostname and Locale echo "crystal-live" > /etc/hostname diff --git a/crystal/airootfs/etc/systemd/system/crystal-gschema.service b/crystal/airootfs/etc/systemd/system/crystal-gschema.service new file mode 100644 index 0000000..e5d9bd8 --- /dev/null +++ b/crystal/airootfs/etc/systemd/system/crystal-gschema.service @@ -0,0 +1,14 @@ +# +# SPDX-License-Identifier: GPL-3.0-or-later + +[Unit] +Description=Builds Crystal ISO GSchemas +Before=gdm.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +[Install] +WantedBy=graphical.target diff --git a/crystal/airootfs/usr/share/glib-2.0/schemas/99_crystal-iso.gschema.override b/crystal/airootfs/usr/share/glib-2.0/schemas/99_crystal-iso.gschema.override new file mode 100644 index 0000000..8234fef --- /dev/null +++ b/crystal/airootfs/usr/share/glib-2.0/schemas/99_crystal-iso.gschema.override @@ -0,0 +1,2 @@ +[org.gnome.desktop.screensaver] +lock-enabled=true \ No newline at end of file