fix: harden classroom presentations
This commit is contained in:
@@ -316,12 +316,13 @@ grep -q 'PRESENTATIONS_ENABLED' /run/ekklesia-classroom/features.json
|
||||
classroom-manual --features | grep -qE 'PRESENTATIONS_ENABLED +shown'
|
||||
classroom-manual --features | grep -qE 'WONDERINK_ENABLED +hidden'
|
||||
|
||||
# The panel offers Presentations only where it is enabled, and the three
|
||||
# applications that were already on the bar keep their order.
|
||||
# The panel offers Presentations only where it is enabled, keeps the classroom
|
||||
# applications in order, and does not expose the separately installed manual
|
||||
# as a teacher-facing Help launcher.
|
||||
layout=/usr/share/plasma/look-and-feel/org.ekklesia.classroom.desktop/contents/layouts/org.kde.plasma.desktop-layout.js
|
||||
grep -q 'var PRESENTATIONS = true;' "$layout"
|
||||
grep -q 'ekklesia-presentations.desktop' "$layout"
|
||||
grep -q 'ekklesia-manual.desktop' "$layout"
|
||||
! grep -q 'ekklesia-manual.desktop' "$layout"
|
||||
python3 - "$layout" <<'ORDER_CHECK'
|
||||
import re
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user