Work around dconf log spew by renaming dconf profile

Related: 2070976
Resolves: #2174414
This commit is contained in:
Ray Strode 2023-03-01 08:42:35 -05:00
parent 7dc75a4bc9
commit 8325e6f48e
5 changed files with 26 additions and 12 deletions

View File

@ -1,8 +1,8 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Name=Mutter Name=GNOME Shell Kiosk Mode
Comment=Window manager Comment=Window manager
Exec=env DCONF_PROFILE=redhat-kiosk /usr/bin/gnome-shell --mode=redhat-kiosk Exec=env DCONF_PROFILE=redhatkiosk /usr/bin/gnome-shell --mode=redhat-kiosk
Categories=GNOME;GTK;Core; Categories=GNOME;GTK;Core;
OnlyShowIn=GNOME; OnlyShowIn=GNOME;
NoDisplay=true NoDisplay=true

View File

@ -1,6 +1,6 @@
[Desktop Entry] [Desktop Entry]
Name=Kiosk (with on-screen keyboard) Name=Kiosk (with on-screen keyboard)
Comment=Kiosk mode with on-screen keyboard Comment=Kiosk mode with on-screen keyboard
Exec=/usr/bin/env DCONF_PROFILE=redhat-kiosk /usr/bin/gnome-session --session=redhat-kiosk-with-keyboard Exec=/usr/bin/env DCONF_PROFILE=redhatkiosk /usr/bin/gnome-session --session=redhat-kiosk-with-keyboard
DesktopNames=Red-Hat-Kiosk;GNOME; DesktopNames=Red-Hat-Kiosk;GNOME;

View File

@ -9,7 +9,7 @@
Name: gnome-session Name: gnome-session
Version: 3.28.1 Version: 3.28.1
Release: 19%{?dist} Release: 20%{?dist}
Summary: GNOME session manager Summary: GNOME session manager
License: GPLv2+ License: GPLv2+
@ -164,9 +164,9 @@ install -D $RPM_SOURCE_DIR/redhat-kiosk -t $RPM_BUILD_ROOT%{_bindir}
install -D $RPM_SOURCE_DIR/20-redhat-kiosk.conf -t $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d install -D $RPM_SOURCE_DIR/20-redhat-kiosk.conf -t $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
install -D $RPM_SOURCE_DIR/50-redhat-kiosk.dconf $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/redhat-kiosk.d/50-redhat-kiosk install -D $RPM_SOURCE_DIR/50-redhat-kiosk.dconf $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/redhatkiosk.d/50-redhat-kiosk
install -D $RPM_SOURCE_DIR/50-redhat-kiosk.dconf.locks $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/redhat-kiosk.d/locks/50-redhat-kiosk install -D $RPM_SOURCE_DIR/50-redhat-kiosk.dconf.locks $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/redhatkiosk.d/locks/50-redhat-kiosk
install -D $RPM_SOURCE_DIR/redhat-kiosk.dconf.profile $RPM_BUILD_ROOT%{_sysconfdir}/dconf/profile/redhat-kiosk install -D $RPM_SOURCE_DIR/redhat-kiosk.dconf.profile $RPM_BUILD_ROOT%{_sysconfdir}/dconf/profile/redhatkiosk
install -D $RPM_SOURCE_DIR/20-redhat-kiosk.conf -t $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d install -D $RPM_SOURCE_DIR/20-redhat-kiosk.conf -t $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
@ -175,6 +175,12 @@ install -D $RPM_SOURCE_DIR/20-redhat-kiosk.conf -t $RPM_BUILD_ROOT%{_datadir}/X1
%ldconfig_scriptlets %ldconfig_scriptlets
%posttrans %posttrans
# These files weren't packaged correctly in gnome-session-3.28.1-19.el8 so manually prune them
rmdir %{_sysconfdir}/dconf/db/redhat-kiosk.d/locks 2> /dev/null || :
rmdir %{_sysconfdir}/dconf/db/redhat-kiosk.d 2> /dev/null || :
rm -f %{_sysconfdir}/dconf/db/redhat-kiosk 2> /dev/null || :
dconf update dconf update
%files xsession %files xsession
@ -185,9 +191,12 @@ dconf update
%{_datadir}/wayland-sessions/* %{_datadir}/wayland-sessions/*
%files kiosk-session %files kiosk-session
%{_sysconfdir}/dconf/db/redhat-kiosk.d/50-redhat-kiosk %dir %{_sysconfdir}/dconf/db/redhatkiosk.d/locks
%{_sysconfdir}/dconf/db/redhat-kiosk.d/locks/50-redhat-kiosk %dir %{_sysconfdir}/dconf/db/redhatkiosk.d
%{_sysconfdir}/dconf/profile/redhat-kiosk %ghost %{_sysconfdir}/dconf/db/redhatkiosk
%{_sysconfdir}/dconf/db/redhatkiosk.d/50-redhat-kiosk
%{_sysconfdir}/dconf/db/redhatkiosk.d/locks/50-redhat-kiosk
%{_sysconfdir}/dconf/profile/redhatkiosk
%{_datadir}/applications/com.redhat.Kiosk.Script.desktop %{_datadir}/applications/com.redhat.Kiosk.Script.desktop
%{_datadir}/applications/com.redhat.Kiosk.WindowManager.desktop %{_datadir}/applications/com.redhat.Kiosk.WindowManager.desktop
%{_datadir}/applications/com.redhat.KioskWithKeyboard.WindowManager.desktop %{_datadir}/applications/com.redhat.KioskWithKeyboard.WindowManager.desktop
@ -215,6 +224,11 @@ dconf update
%{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml %{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
%changelog %changelog
* Wed Mar 01 2023 Ray Strode <rstrode@redhat.com> - 3.28.1-20
- Work around dconf log spew by renaming dconf profile
Related: 2070976
Resolves: #2174414
* Tue Feb 28 2023 Ray Strode <rstrode@redhat.com> - 3.28.1-19 * Tue Feb 28 2023 Ray Strode <rstrode@redhat.com> - 3.28.1-19
- Another fix - Another fix
Related: #2070976 Related: #2070976

View File

@ -23,7 +23,7 @@ EOF
touch ~/.config/gnome-initial-setup-done touch ~/.config/gnome-initial-setup-done
fi fi
export DCONF_PROFILE=redhat-kiosk export DCONF_PROFILE=redhatkiosk
systemctl --user import-environment DCONF_PROFILE systemctl --user import-environment DCONF_PROFILE
exec ~/.local/bin/redhat-kiosk "$@" exec ~/.local/bin/redhat-kiosk "$@"

View File

@ -1,5 +1,5 @@
user-db:user user-db:user
system-db:redhat-kiosk system-db:redhatkiosk
system-db:local system-db:local
system-db:site system-db:site
system-db:distro system-db:distro