diff --git a/0001-schema-Add-banner-message-path-and-source-settings.patch b/0001-schema-Add-banner-message-path-and-source-settings.patch new file mode 100644 index 0000000..949d9c1 --- /dev/null +++ b/0001-schema-Add-banner-message-path-and-source-settings.patch @@ -0,0 +1,63 @@ +From 8e77b79f78111f67cf42acfad57ad2a7dc510dc7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Fri, 22 Nov 2024 16:23:58 +0100 +Subject: [PATCH] schema: Add `banner-message-path` and `-source` settings + +The new settings allows reading the banner message from a file +instead of GSettings. This is mainly useful for `/etc/motd` +and similar mechanisms, to show the same message for both +graphical and non-graphical logins. +--- + data/org.gnome.login-screen.gschema.xml | 23 +++++++++++++++++++++++ + 1 file changed, 23 insertions(+) + +diff --git a/data/org.gnome.login-screen.gschema.xml b/data/org.gnome.login-screen.gschema.xml +index 7b5c54d1b..5a547e9b8 100644 +--- a/data/org.gnome.login-screen.gschema.xml ++++ b/data/org.gnome.login-screen.gschema.xml +@@ -1,5 +1,10 @@ + + ++ ++ ++ ++ ++ + + + true +@@ -70,6 +75,15 @@ + Set to true to show the banner message text. + + ++ ++ "settings" ++ ++ Banner message source ++ ++ ++ The source of the text banner message on the login screen. ++ ++ + + '' + +@@ -79,6 +93,15 @@ + Text banner message to show in the login window. + + ++ ++ '' ++ ++ Banner message path ++ ++ ++ Path to text file with banner message to show in the login window. ++ ++ + + false + +-- +2.48.1 + diff --git a/gdm.spec b/gdm.spec index ff2c124..708dfaf 100644 --- a/gdm.spec +++ b/gdm.spec @@ -24,6 +24,7 @@ Source6: gdm.sysusers Patch: 0001-Honor-initial-setup-being-disabled-by-distro-install.patch Patch: 0001-data-add-system-dconf-databases-to-gdm-profile.patch Patch: 0001-Add-headless-session-files.patch +Patch: 0001-schema-Add-banner-message-path-and-source-settings.patch BuildRequires: dconf BuildRequires: desktop-file-utils