don't prompt plasma browser integration installation

This commit is contained in:
end-4
2025-05-18 21:24:20 +02:00
parent 7428da2552
commit d365ede358
+18 -18
View File
@@ -119,24 +119,24 @@ showfun install-python-packages
v install-python-packages v install-python-packages
## Optional dependencies ## Optional dependencies
if pacman -Qs ^plasma-browser-integration$ ;then SKIP_PLASMAINTG=true;fi # if pacman -Qs ^plasma-browser-integration$ ;then SKIP_PLASMAINTG=true;fi
case $SKIP_PLASMAINTG in # case $SKIP_PLASMAINTG in
true) sleep 0;; # true) sleep 0;;
*) # *)
if $ask;then # if $ask;then
echo -e "\e[33m[$0]: NOTE: The size of \"plasma-browser-integration\" is about 250 MiB.\e[0m" # echo -e "\e[33m[$0]: NOTE: The size of \"plasma-browser-integration\" is about 250 MiB.\e[0m"
echo -e "\e[33mIt is needed if you want playtime of media in Firefox to be shown on the music controls widget.\e[0m" # echo -e "\e[33mIt is needed if you want playtime of media in Firefox to be shown on the music controls widget.\e[0m"
echo -e "\e[33mInstall it? [y/N]\e[0m" # echo -e "\e[33mInstall it? [y/N]\e[0m"
read -p "====> " p # read -p "====> " p
else # else
p=y # p=y
fi # fi
case $p in # case $p in
y) x sudo pacman -S --needed --noconfirm plasma-browser-integration ;; # y) x sudo pacman -S --needed --noconfirm plasma-browser-integration ;;
*) echo "Ok, won't install" # *) echo "Ok, won't install"
esac # esac
;; # ;;
esac # esac
v sudo usermod -aG video,i2c,input "$(whoami)" v sudo usermod -aG video,i2c,input "$(whoami)"
v bash -c "echo i2c-dev | sudo tee /etc/modules-load.d/i2c-dev.conf" v bash -c "echo i2c-dev | sudo tee /etc/modules-load.d/i2c-dev.conf"