Skip to content

Commit f7e1b58

Browse files
committed
Fix theme for calamares in community
1 parent 5a97233 commit f7e1b58

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

usr/bin/calamares-biglinux

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
export TEXTDOMAINDIR="/usr/share/locale"
55
export TEXTDOMAIN=calamares-biglinux
66

7+
8+
user=$(ls /home)
9+
710
# Determine the appropriate text editor
811
if [ -f /usr/bin/kate ]; then
912
text_editor="kate"
@@ -359,11 +362,17 @@ bigbashview -s 1100x600 -n $"Install System" -p bbv-calamares -c transparent -w
359362

360363
# Start Calamares installation if flagged
361364
if [ -e "/tmp/start_calamares" ]; then
362-
cp -f /usr/share/biglinux/themes/biglinux/.config/kdeglobals /root/.config/kdeglobals
363-
sudo QT_QUICK_BACKEND=software /usr/bin/calamares-manjaro
365+
if [ -e /usr/share/biglinux/themes/biglinux/.config/kdeglobals ]; then
366+
cp -f /usr/share/biglinux/themes/biglinux/.config/kdeglobals /root/.config/kdeglobals
367+
cp -Rf /usr/share/biglinux/themes/biglinux/.config/Kvantum /root/.config/Kvantum
368+
else
369+
cp -f /etc/skel/.config/kdeglobals /root/.config/kdeglobals
370+
cp -Rf /etc/skel/.config/Kvantum /root/.config/Kvantum
371+
fi
372+
373+
sudo QT_QPA_PLATFORMTHEME=kde QT_QUICK_BACKEND=software /usr/bin/calamares-manjaro
364374

365375
# Copy the installation log to the user's home directory
366-
user=$(ls /home)
367376
cp /root/.cache/calamares/session.log /home/$user/calamares_complete.log
368377
chown $user:$user /home/$user/calamares_complete.log
369378

0 commit comments

Comments
 (0)