KDE: write kxkbrc/plasmakeyboardrc as machine defaults, not package /etc payload
A package that installs files under /etc makes the purpose composition build /job/core/etc from the package payload and lose pacman.conf, which aborts finalization. The finalizer already writes NM/sudoers/plymouth defaults there.
This commit is contained in:
parent
babb0ce1b2
commit
b4fd66d103
2 changed files with 15 additions and 15 deletions
|
|
@ -14,6 +14,21 @@ arch-chroot /job/core pacman --config /dev/null --dbpath /usr/lib/archipelago/pa
|
|||
echo 'D-110: SDDM must not be installed in the KDE Purpose' >&2; exit 1; }
|
||||
# Keyboard layouts and the virtual keyboard reach the greeter through the
|
||||
# system-wide Plasma configuration that both the greeter and user sessions read.
|
||||
# The greeter is a Plasma session and inherits these system-wide settings. They
|
||||
# are machine defaults written here, not package payload: a package that installs
|
||||
# files under /etc breaks the purpose composition (D-110 follow-up).
|
||||
mkdir -p /job/core/etc/xdg
|
||||
cat > /job/core/etc/xdg/kxkbrc <<'KXKBRC'
|
||||
[Layout]
|
||||
Use=true
|
||||
LayoutList=ru,us
|
||||
Model=pc105
|
||||
Options=grp:alt_shift_toggle
|
||||
KXKBRC
|
||||
cat > /job/core/etc/xdg/plasmakeyboardrc <<'PLASMAKEYBOARD'
|
||||
[General]
|
||||
enabledLocales=ru_RU,en_US
|
||||
PLASMAKEYBOARD
|
||||
grep -qx 'LayoutList=ru,us' /job/core/etc/xdg/kxkbrc
|
||||
grep -qx 'enabledLocales=ru_RU,en_US' /job/core/etc/xdg/plasmakeyboardrc
|
||||
printf 'Plasma Login Manager: greeter is a Plasma session; kxkbrc/plasmakeyboardrc apply system-wide\n'
|
||||
|
|
|
|||
|
|
@ -11,21 +11,6 @@ mkdir -p "$pkg/runtime/usr/lib/systemd/zram-generator.conf.d"
|
|||
printf '[zram0]\n' > "$pkg/runtime/usr/lib/systemd/zram-generator.conf.d/20-archipelago-desktop.conf"
|
||||
sed 's/Archipelago Core/Archipelago KDE/g' "$pkg/runtime/usr/lib/archipelago/defaults/os-release" > "$pkg/runtime/usr/lib/archipelago/defaults/os-release-kde"
|
||||
printf 'purpose/desktop/kde\n' > "$pkg/runtime/usr/lib/archipelago/purpose"
|
||||
# Plasma Login Manager owns the greeter and has no SDDM themes. The greeter is a
|
||||
# Plasma session, so it inherits the system-wide layout and virtual-keyboard
|
||||
# configuration; this is what makes RU+EN and the on-screen keyboard work there.
|
||||
mkdir -p "$pkg/runtime/etc/xdg"
|
||||
cat > "$pkg/runtime/etc/xdg/kxkbrc" <<'KXKBRC'
|
||||
[Layout]
|
||||
Use=true
|
||||
LayoutList=ru,us
|
||||
Model=pc105
|
||||
Options=grp:alt_shift_toggle
|
||||
KXKBRC
|
||||
cat > "$pkg/runtime/etc/xdg/plasmakeyboardrc" <<'PLASMAKEYBOARD'
|
||||
[General]
|
||||
enabledLocales=ru_RU,en_US
|
||||
PLASMAKEYBOARD
|
||||
printf 'Plasma Setup is the native first-user provisioner.\n' > "$pkg/runtime/usr/lib/archipelago/kde-firstboot"
|
||||
desktop="$pkg/runtime/usr/share/archipelago/desktop"
|
||||
units="$pkg/runtime/usr/lib/systemd/system"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue