From 052cbcfb6809205cf4216f8677d91348a3a39db6 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Fri, 2 Jun 2023 14:42:18 -0400 Subject: [PATCH] Add code to handle codec installation manually --- opensuse-personalizer.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/opensuse-personalizer.sh b/opensuse-personalizer.sh index 1d5fda6..8b38fe4 100755 --- a/opensuse-personalizer.sh +++ b/opensuse-personalizer.sh @@ -82,6 +82,8 @@ GNOME_EXTENSIONS=( ######################################## # URLs +PACKMAN_REPO_URL="https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/" + FLATHUB_REMOTE_URL="https://flathub.org/repo/flathub.flatpakrepo" PERSONALIZER_REPO_URL="https://gitlab.com/jessieh/opensuse-personalizer.git" @@ -309,9 +311,13 @@ if [[ "${detected_features[@]}" == *"x86-64-v3"* ]]; then sudo zypper in patterns-glibc-hwcaps-x86_64_v3 fi -sudo zypper --non-interactive rm ${RM[@]} ${AL[@]} -sudo zypper --non-interactive al ${AL[@]} -sudo zypper --non-interactive in ${IN[@]} +sudo zypper --non-interactive remove ${RM[@]} ${AL[@]} +sudo zypper --non-interactive addlock ${AL[@]} +sudo zypper --non-interactive install ${IN[@]} + +# Install any codecs not hosted by OpenSUSE +sudo zypper --non-interactive addrepo -cfp 90 "${PACKMAN_REPO_URL}" packman +sudo zypper --non-interactive install --from packman ffmpeg gstreamer-plugins-{good,bad,ugly,libav} libavcodec-full ######################################## # Flatpak operations @@ -323,12 +329,6 @@ sudo flatpak remote-add --if-not-exists flathub "${FLATHUB_REMOTE}" echo "Setting up Flatpak packages..." sudo flatpak install --noninteractive ${FLATPAK_PACKAGES[@]} -######################################## -# Codec installation - -echo "Setting up codecs..." -opi codecs - ######################################## # (OPTIONAL) Extra packages