Skip to content

Commit 794a46d

Browse files
committed
Use Xwayland to show md5 error
1 parent df0996d commit 794a46d

5 files changed

Lines changed: 431 additions & 17 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/bash
22

3-
cd /usr/share/bigbashview/apps/livecd
4-
/usr/bin/bigbashview -w fullscreen -c black -t qt localization.html
3+
python /usr/share/biglinux/livecd/main.py

biglinux-livecd/usr/bin/startbiglive

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Enabled=false' >> ~/.config/kwalletrc
4444
fi
4545

4646
# Verify cmdline biglinux.bootcmd
47-
eval "kernel_args=( $(cat /proc/cmdline) )"
47+
eval "kernel_args=( $(</proc/cmdline) )"
4848
for arg in "${kernel_args[@]}" ; do
4949
case "$arg" in
5050
biglinux.bootcmd=*)
@@ -54,12 +54,6 @@ for arg in "${kernel_args[@]}" ; do
5454
esac
5555
done
5656

57-
# Manage the biglinux-dual-gpu-manager-after-display-manager service
58-
cd /usr/share/bigbashview/apps/livecd/
59-
if systemctl -q is-enabled biglinux-dual-gpu-manager-after-display-manager; then
60-
sudo systemctl start biglinux-dual-gpu-manager-after-display-manager 2>&1 &
61-
fi
62-
6357
# Apply theme
6458
if [[ -e /usr/share/sync-kde-and-gtk-places/sync-gnome-theme-to-qt.sh ]]; then
6559
/usr/share/sync-kde-and-gtk-places/sync-gnome-theme-to-qt.sh
@@ -68,7 +62,7 @@ fi
6862
# Environment settings for QT and run bigbashview
6963
if [ "$XDG_SESSION_TYPE" == "x11" ]; then
7064
systemctl --user start plasma-kglobalaccel.service
71-
bigbashview -c black -t qt -s $(LANG=C xdpyinfo | grep 'dimensions:' | sed 's|.*dimensions:||g;s| pixels.*||g') localization.html
65+
python /usr/share/biglinux/livecd/main.py
7266
else
7367
if [[ $display_manager == "sddm" ]]; then
7468
export DESKTOP_SESSION=KDE
@@ -78,7 +72,7 @@ else
7872
export XDG_CURRENT_DESKTOP=KDE
7973
export QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor
8074
systemctl --user start plasma-kglobalaccel.service
81-
dbus-run-session kwin_wayland_wrapper --drm --no-lockscreen --xwayland '/usr/bin/bigbashview -w fullscreen -c black -t qt -d /usr/share/bigbashview/apps/livecd localization.html'
75+
dbus-run-session kwin_wayland_wrapper --drm --no-lockscreen --xwayland 'python /usr/share/biglinux/livecd/main.py'
8276
elif [[ $display_manager == "gdm" ]]; then
8377
export DESKTOP_SESSION=gnome
8478
export XDG_SESSION_DESKTOP=gnome
@@ -93,12 +87,12 @@ fi
9387
wait
9488

9589
# Language and theme settings
96-
export LANGUAGE=$(cat /tmp/big_language).UTF-8
97-
export LANG=$(cat /tmp/big_language).UTF-8
98-
export LC_MESSAGES=$(cat /tmp/big_language).UTF-8
99-
export LC_ALL=$(cat /tmp/big_language).UTF-8
100-
echo "$(cat /tmp/big_language)" > $HOME/.config/user-dirs.locale
101-
echo -e "[Formats]\nLANG=$(cat /tmp/big_language).UTF-8" > $HOME/.config/plasma-localerc
90+
export LANGUAGE=$(</tmp/big_language).UTF-8
91+
export LANG=$(</tmp/big_language).UTF-8
92+
export LC_MESSAGES=$(</tmp/big_language).UTF-8
93+
export LC_ALL=$(</tmp/big_language).UTF-8
94+
echo "$(</tmp/big_language)" > $HOME/.config/user-dirs.locale
95+
echo -e "[Formats]\nLANG=$(</tmp/big_language).UTF-8" > $HOME/.config/plasma-localerc
10296

10397
# Make folders in home
10498
xdg-user-dirs-update
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
##################################
3+
# Author1: Bruno Goncalves (www.biglinux.com.br)
4+
# Author2: Rafael Ruscher (rruscher@gmail.com)
5+
# Date: 2022/08/19
6+
#
7+
# Description: Control Center to help usage of BigLinux
8+
#
9+
# Licensed by GPL V2 or greater
10+
##################################
11+
12+
export LANGUAGE=$(cat /tmp/big_language).UTF-8
13+
export LANG=$(cat /tmp/big_language).UTF-8
14+
15+
#Translation
16+
export TEXTDOMAINDIR="/usr/share/locale"
17+
export TEXTDOMAIN=biglinux-livecd
18+
19+
File="/tmp/checksum_biglinux.html"
20+
FileVerified="/tmp/checksum_biglinux_ok.html"
21+
22+
if [ ! -e $FileVerified ]; then
23+
24+
###### Detecting folder with files
25+
# Try with manjaro folder
26+
if [[ -e /run/miso/bootmnt/manjaro/x86_64/ ]]; then
27+
cd /run/miso/bootmnt/manjaro/x86_64/
28+
29+
# Try with folder same as HOSTNAME
30+
elif [[ -e /run/miso/bootmnt/$HOSTNAME/x86_64/ ]]; then
31+
cd /run/miso/bootmnt/$HOSTNAME/x86_64/
32+
33+
# Try folder removing efi and boot folder
34+
elif [[ -e $(ls -d1 /run/miso/bootmnt/*/ | grep -ve '/efi/' -ve '/boot/') ]]; then
35+
cd $(ls -d1 /run/miso/bootmnt/*/ | grep -ve '/efi/' -ve '/boot/')
36+
fi
37+
######
38+
39+
rm -f $File
40+
41+
md5sum --status -c desktopfs.md5
42+
if [ "$?" != "0" ] ; then
43+
./md5error.sh
44+
exit
45+
fi
46+
47+
md5sum --status -c livefs.md5
48+
if [ "$?" != "0" ] ; then
49+
./md5error.sh
50+
exit
51+
fi
52+
53+
md5sum --status -c mhwdfs.md5
54+
if [ "$?" != "0" ] ; then
55+
./md5error.sh
56+
exit
57+
fi
58+
59+
md5sum --status -c rootfs.md5
60+
if [ "$?" != "0" ] ; then
61+
./md5error.sh
62+
exit
63+
fi
64+
fi
65+
66+
echo 1 > $FileVerified

0 commit comments

Comments
 (0)