-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
seg 02 out 2023 09:57:12 -04 Vilmar Catafesta ([email protected])
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# Description: Big Store installing programs for BigLinux | ||
# | ||
# Created: 2022/11/01 | ||
# Altered: 2023/09/25 | ||
# Altered: 2023/09/28 | ||
# | ||
# Copyright (c) 2023-2023, Vilmar Catafesta <[email protected]> | ||
# 2022-2023, Bruno Gonçalves <www.biglinux.com.br> | ||
|
@@ -34,7 +34,7 @@ | |
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
APP="${0##*/}" | ||
_VERSION_="1.0.0-20230925" | ||
_VERSION_="1.0.0-20230928" | ||
LIBRARY=${LIBRARY:-'/usr/share/bigbashview/bcc/shell'} | ||
export BOOTLOG="/tmp/bigstore-$USER-$(date +"%d%m%Y").log" | ||
export LOGGER='/dev/tty8' | ||
|
@@ -52,6 +52,7 @@ | |
declare -g Pacotes_text=$"Pacotes" | ||
declare -g Pacotes_flatpak_text=$"Pacotes Flatpak" | ||
declare -g Pacotes_Snap_text=$"Pacotes Snap" | ||
declare -g Traducao_Online_text=$"Tradução da descrição dos pacotes online" | ||
declare -g Ativado_text=$"Ativado" | ||
declare -g Desativado_text=$"Desativado" | ||
declare -g Atualizacoes_text=$"Atualizações" | ||
|
@@ -99,7 +100,7 @@ | |
if ! sh_package_is_installed "$pkg_name"; then | ||
sh_run_pamac_installer "$pkg_name" 'apparmor' 'snapd' | ||
fi | ||
# sh_run_action "enable_snapd" | ||
# sh_run_action "enable_snapd" | ||
sh_run_action_standalone "sh_enable_snapd_and_apparmor" | ||
TIni.Set "$INI_FILE_BIG_STORE" "snap" "snap_active" '1' | ||
kdialog --title $"Big-Store" --msgbox "$MsgSnap\n\n$(systemctl status apparmor --lines=0)\n\n$(systemctl status snapd.apparmor --lines=0)\n\n$(systemctl status snapd --lines=0)" | ||
|
@@ -122,7 +123,7 @@ | |
if [[ "$pkg_name" = "libpamac-snap-plugin" ]]; then | ||
TIni.Set "$INI_FILE_BIG_STORE" "snap" "snap_active" '0' | ||
fi | ||
# sh_run_pamac_remove $pkg_name | ||
# sh_run_pamac_remove $pkg_name | ||
pacman -Qu | cut -f1 -d" " >>"$tmp_file_upgradeable" | ||
fi | ||
|
||
|
@@ -135,6 +136,8 @@ | |
[[ "$system_upgradetotal" = "y" ]] && sh_run_action "system_upgradetotal" "$WINDOW_ID" "$PACKAGE_NAME" "$PACKAGE_ID" "$REPOSITORY" "$DRIVER" | ||
[[ "$update_flatpak" = "y" ]] && sh_run_action "update_flatpak" "$WINDOW_ID" "$PACKAGE_NAME" "$PACKAGE_ID" "$REPOSITORY" "$DRIVER" | ||
[[ "$update_snap" = "y" ]] && sh_run_action "update_snap" "$WINDOW_ID" "$PACKAGE_NAME" "$PACKAGE_ID" "$REPOSITORY" "$DRIVER" | ||
[[ "$update_traducao" = "y" ]] && TIni.Set "$INI_FILE_BIG_STORE" "bigstore" "traducao_online" '1' | ||
[[ "$update_traducao" = "n" ]] && TIni.Set "$INI_FILE_BIG_STORE" "bigstore" "traducao_online" '0' | ||
|
||
cat <<-EOF | ||
<div id=box_index_category> | ||
|
@@ -148,15 +151,18 @@ | |
$Pacotes_text | ||
</div> | ||
<ul> | ||
EOF | ||
|
||
#FLATPAK | ||
cat <<-EOF | ||
<li class="hidemenu"> | ||
<div class="products"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" style="border-radius: 0px;"> | ||
<div class="products"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" style="border-radius: 0px;"> | ||
<path fill="currentColor" d="m 200,5.9523902 c -8.98514,0 -17.97169,2.3280645 -26.03677,6.9844298 L 51.016633,83.920269 C 34.886486,93.233022 24.979868,110.38745 24.979868,129.01293 v 141.97046 c 0,18.62546 9.906618,35.77989 26.036765,45.09264 l 122.946597,70.98701 c 16.13013,9.31276 35.9434,9.31276 52.07354,0 l 122.94659,-70.98701 c 16.13016,-9.31275 26.03677,-26.46718 26.03677,-45.09264 V 129.01293 c 0,-18.62548 -9.90661,-35.779908 -26.03677,-45.092661 L 226.03677,12.93682 C 217.9717,8.2804547 208.98514,5.9523902 200,5.9523902 Z m 0,38.1331378 c 2.41371,0 4.82858,0.621233 6.97729,1.861803 l 122.94663,70.983449 c 2.14873,1.24057 3.89441,3.02162 5.10127,5.11195 L 200,199.99993 v 155.91086 c -2.41371,0 -4.82859,-0.62123 -6.97731,-1.86182 L 70.07608,283.06553 c -4.297468,-2.48115 -6.977319,-7.11987 -6.977319,-12.08214 V 129.01293 c 0,-2.48114 0.669184,-4.87986 1.876048,-6.9702 L 200,199.99993 Z"> | ||
</path></svg> | ||
$Pacotes_flatpak_text | ||
</div> | ||
EOF | ||
|
||
#FLATPAK | ||
if TIni.Exist "$INI_FILE_BIG_STORE" "flatpak" "flatpak_active" '1' && [[ -e "/usr/lib/libpamac-flatpak.so" ]]; then | ||
cat <<-EOF | ||
<span class="status"><span class="status-circle true"></span> | ||
|
@@ -182,6 +188,9 @@ | |
</div> | ||
EOF | ||
fi | ||
#FLATPAK | ||
|
||
#SNAP | ||
cat <<-EOF | ||
</li> | ||
<li class="any-product"> | ||
|
@@ -192,8 +201,6 @@ | |
$Pacotes_Snap_text | ||
</div> | ||
EOF | ||
|
||
#SNAP | ||
if TIni.Exist "$INI_FILE_BIG_STORE" "snap" "snap_active" '1' && [[ -e "/usr/lib/libpamac-snap.so" ]]; then | ||
cat <<-EOF | ||
<span class="status"><span class="status-circle true"></span> | ||
|
@@ -219,6 +226,54 @@ | |
</div> | ||
EOF | ||
fi | ||
#SNAP | ||
|
||
#TRADUCAO BEGIN | ||
cat <<-EOF | ||
</li> | ||
<li class="any-product"> | ||
<div class="products"> | ||
<img src="icons/translate.svg" fill="white" alt="$Traducao_online_text SVG" width="40.000000pt" height="40.000000pt" viewBox="0 0 24 24" style="border-radius: 0px;"> | ||
$Traducao_Online_text | ||
</div> | ||
EOF | ||
if TIni.Exist "$INI_FILE_BIG_STORE" "bigstore" "traducao_online" '1'; then | ||
cat <<-EOF | ||
<span class="status"><span class="status-circle true"></span> | ||
$Ativado_text | ||
</span> | ||
<div class="button-wrapper"> | ||
<div class="switch"><label for="t1"> | ||
<input | ||
id="t1" | ||
type="checkbox" | ||
class="switch" | ||
checked | ||
onclick="location.href='config.sh.htm?update_traducao=n';" | ||
> | ||
<span class="lever"></span></label> | ||
</div> | ||
</div> | ||
EOF | ||
else | ||
cat <<-EOF | ||
<span class="status"><span class="status-circle false"></span> | ||
$Desativado_text | ||
</span> | ||
<div class="button-wrapper"> | ||
<div class="switch"><label for="t1"> | ||
<input | ||
id="t1" | ||
type="checkbox" | ||
class="switch" | ||
onclick="location.href='config.sh.htm?update_traducao=y';" | ||
> | ||
<span class="lever"></span></label> | ||
</div> | ||
</div> | ||
EOF | ||
fi | ||
#TRADUCAO END | ||
|
||
cat <<-EOF | ||
</li></ul></div> | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.