From d2c4eec9395a32df2f288e4f4dc9c3e37903ae15 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Mar 18 2025 11:56:06 +0000 Subject: Enable locale1-x11-sync script for X11 spins This script will reflect keyboard layout configuration between localed DBus service and the running X11 based environment. This is requirement for Anaconda to be able to control keyboard layouts in the Live environment. Requirement was implemented by https://fedoraproject.org/wiki/Changes/Anaconda_As_Native_Wayland_Application#Consistent_keyboard_control --- diff --git a/libexec/livesys/livesys-main b/libexec/livesys/livesys-main index b21105d..d7b9d96 100755 --- a/libexec/livesys/livesys-main +++ b/libexec/livesys/livesys-main @@ -144,6 +144,13 @@ sed -i 's/rtcsync//' /etc/chrony.conf # https://bugzilla.redhat.com/show_bug.cgi?id=1370222 hostnamectl set-hostname "localhost-live" +# enable localed support for the live desktop so Anaconda is able to control keyboard layout +# https://fedoraproject.org/wiki/Changes/Anaconda_As_Native_Wayland_Application#Consistent_keyboard_control +if rpm -q "xorg-x11-server-Xorg" > /dev/null && [ -e "/usr/lib/systemd/user/locale1-x11-sync.service" ]; then + mkdir -p /home/liveuser/.config/systemd/user/graphical.target.wants/ + ln -s /usr/lib/systemd/user/locale1-x11-sync.service /home/liveuser/.config/systemd/user/graphical.target.wants/ +fi + if [ "${livesys_session}" ]; then if [ -f "/usr/libexec/livesys/sessions.d/livesys-${livesys_session}" ]; then . /usr/libexec/livesys/sessions.d/"livesys-${livesys_session}"