Always-packages: install the multimedia dnf group #17

Merged
yuri merged 1 commits from feat/always-multimedia-group into main 2026-11-13 16:27:26 +01:00
+18
View File
@@ -395,6 +395,9 @@ fi
#------------------------------------------
# Add a category here and it is installed on every run, no questions asked.
# Keep each category one line so diffs stay readable.
# A line that is a dnf comps GROUP is written "@group" (e.g. "@multimedia");
# the loop below routes it through install_group, which reports a bad group
# name with the list of groups this system actually has.
ALWAYS_PACKAGES=(
# Terminals
"ghostty ghostty-bash-completion zsh zsh-syntax-highlighting"
@@ -414,6 +417,10 @@ ALWAYS_PACKAGES=(
"libreoffice"
# Multimedia
"mpv gstreamer1-plugin-openh264 mozilla-openh264"
# Multimedia codecs: dnf comps group 'multimedia' (the group Fedora's own
# docs recommend for playing movies/music). It is a GROUP, not a package,
# so it gets its own line — and the loop below sends it to install_group.
"@multimedia"
)
step "6 Always-installed packages"
@@ -421,6 +428,17 @@ rule
always_failed=""
for category in "${ALWAYS_PACKAGES[@]}"; do
# A "@group" line is a dnf comps group. install_group checks the group
# exists first and prints the real group list when it does not, instead
# of dnf's unhelpful "No match for argument: @multimedia".
if [[ "$category" == @* ]]; then
if ! install_group "${category#@}"; then
color_red " Failed: group ${category}"
always_failed="yes"
pause_if_debug
fi
continue
fi
# shellcheck disable=SC2086
if ! install_packages $category; then
color_red " Failed: $category"