A real room upgraded to 0.1.45 and came up as stock Debian Plasma with the old Waybar across the top, mako still catching notifications, and a lock screen on an account that has no password. The cause was one line, and it was in the lab: the harness handed the session under test XDG_CONFIG_DIRS by hand, so every result it had ever produced was a result about a machine somebody had already configured. On a machine SDDM starts the session through PAM, PAM does not read /etc/environment.d, and Debian's own plasma-workspace env.sh then set the variable from scratch — so the classroom's settings directory was not in the cascade at all. No layout, no lock policy, no Kiosk restrictions. The settings now arrive the way Plasma delivers them, through a file in /etc/xdg/plasma-workspace/env. Around that: the look and feel is immutable on its own key so a stale profile cannot answer for it; the palette is composed into the package, because naming a colour scheme does not produce one and the dark bar had been coming from a technician's hand; the desktop reset converges another desktop's appearance state and keeps the room's own; and classroom-migrate stops, deactivates and masks the old shell, including the D-Bus activation that brought mako back while the panel was down — found only by killing the panel on a migrated machine. device.conf loses COMPOSITOR and comes off the hyprland channel, which would otherwise have handed the room the experiment back. The lab stops flattering the package: it restarts the machine, lets SDDM actually autologin, and asks a fresh install and a machine upgraded from the Hyprland package the same sixty questions. Both answer identically, twice, and the panel still comes back from eight SIGKILLs. Co-Authored-By: Claude Opus 5 <[email protected]>
92 lines
3.8 KiB
Bash
Executable File
92 lines
3.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# Put the classroom desktop onto a machine, from the repository, at the
|
|
# paths the package will use. Run as root inside the lab.
|
|
#
|
|
# Every destination here is a normal system path that Plasma already reads.
|
|
# There is no classroom daemon in this list, and nothing is generated: the
|
|
# desktop is a set of files.
|
|
set -euo pipefail
|
|
|
|
SRC="${1:-/srv/classroom}"
|
|
|
|
# A directory of the classroom's own, ahead of /etc/xdg in
|
|
# XDG_CONFIG_DIRS. plasma-workspace owns files by these names in /etc/xdg
|
|
# and two packages cannot own one path.
|
|
for setting in kwinrc kwinrulesrc kscreenlockerrc ksmserverrc \
|
|
krunnerrc plasmanotifyrc powermanagementprofilesrc; do
|
|
install -Dm644 "$SRC/config/plasma/xdg/$setting" \
|
|
"/etc/ekklesia-classroom/xdg/$setting"
|
|
rm -f "/etc/xdg/$setting.ekklesia-old"
|
|
done
|
|
|
|
# Composed, not copied — the policy and the palette. See tools/build-kdeglobals.
|
|
install -d /etc/ekklesia-classroom/xdg
|
|
"$SRC/tools/build-kdeglobals" > /etc/ekklesia-classroom/xdg/kdeglobals
|
|
chmod 0644 /etc/ekklesia-classroom/xdg/kdeglobals
|
|
|
|
install -Dm644 "$SRC/config/environment/90-ekklesia-classroom.conf" \
|
|
/etc/environment.d/90-ekklesia-classroom.conf
|
|
|
|
# What actually puts that directory into a session started by a display
|
|
# manager. startplasma sources this; PAM never reads environment.d.
|
|
install -Dm644 "$SRC/config/plasma/env/zz-ekklesia-classroom.sh" \
|
|
/etc/xdg/plasma-workspace/env/zz-ekklesia-classroom.sh
|
|
|
|
install -Dm644 "$SRC/config/systemd/logind-ekklesia-classroom.conf" \
|
|
/etc/systemd/logind.conf.d/ekklesia-classroom.conf
|
|
|
|
install -Dm644 "$SRC/config/plasma/colors/EkklesiaDark.colors" \
|
|
/usr/share/color-schemes/EkklesiaDark.colors
|
|
install -Dm644 "$SRC/config/plasma/colors/EkklesiaLight.colors" \
|
|
/usr/share/color-schemes/EkklesiaLight.colors
|
|
|
|
LNF=/usr/share/plasma/look-and-feel/org.ekklesia.classroom.desktop
|
|
rm -rf "$LNF"
|
|
install -Dm644 "$SRC/config/plasma/lookandfeel/metadata.json" "$LNF/metadata.json"
|
|
install -Dm644 "$SRC/config/plasma/lookandfeel/contents/defaults" \
|
|
"$LNF/contents/defaults"
|
|
install -Dm644 \
|
|
"$SRC/config/plasma/lookandfeel/contents/layouts/org.kde.plasma.desktop-layout.js" \
|
|
"$LNF/contents/layouts/org.kde.plasma.desktop-layout.js"
|
|
|
|
for entry in "$SRC"/config/plasma/applications/*.desktop; do
|
|
install -Dm644 "$entry" "/usr/share/applications/$(basename "$entry")"
|
|
done
|
|
|
|
# Entries that deliberately shadow a vendor one. XDG_DATA_DIRS searches
|
|
# /usr/local/share before /usr/share, so these win without touching, and
|
|
# without being overwritten by, the package that provides the original.
|
|
for entry in "$SRC"/config/plasma/applications-local/*.desktop; do
|
|
install -Dm644 "$entry" "/usr/local/share/applications/$(basename "$entry")"
|
|
done
|
|
|
|
install -Dm644 "$SRC/config/plasma/solid/ekklesia-dvd.desktop" \
|
|
/usr/share/solid/actions/ekklesia-dvd.desktop
|
|
|
|
install -Dm644 "$SRC/config/dbus/fr.emersion.mako.service" \
|
|
/usr/local/share/dbus-1/services/fr.emersion.mako.service
|
|
|
|
for icon in "$SRC"/config/icons/ekklesia-*.svg; do
|
|
[ -e "$icon" ] || continue
|
|
install -Dm644 "$icon" \
|
|
"/usr/share/icons/hicolor/scalable/apps/$(basename "$icon")"
|
|
done
|
|
|
|
install -Dm644 "$SRC/config/wallpapers/classroom-calm.png" \
|
|
/usr/share/backgrounds/ekklesia/classroom-calm.png
|
|
|
|
install -Dm644 "$SRC/systemd/user/plasma-plasmashell.service.d/ekklesia-classroom.conf" \
|
|
/etc/systemd/user/plasma-plasmashell.service.d/ekklesia-classroom.conf
|
|
|
|
for script in classroom-browser classroom-wonderink; do
|
|
[ -e "$SRC/scripts/$script" ] || continue
|
|
install -Dm755 "$SRC/scripts/$script" "/usr/local/bin/$script"
|
|
done
|
|
|
|
command -v gtk-update-icon-cache >/dev/null 2>&1 \
|
|
&& gtk-update-icon-cache -qtf /usr/share/icons/hicolor || true
|
|
command -v update-desktop-database >/dev/null 2>&1 \
|
|
&& update-desktop-database -q /usr/share/applications || true
|
|
|
|
echo "classroom desktop installed"
|