Shawn Dunn
f6f9b7a56f
- extra script to cater aarch64 with an rpm for MozillaFirefox as a flatpak for it does not exist on flathub.org - changed spec file to call the right script %ifarch aarch64 OBS-URL: https://build.opensuse.org/request/show/1119539 OBS-URL: https://build.opensuse.org/package/show/devel:microos:kalpa/plasma-branding-Kalpa?expand=0&rev=2
29 lines
1.0 KiB
Bash
29 lines
1.0 KiB
Bash
#!/bin/sh
|
|
|
|
dbusRef=$(kdialog --title "openSUSE Kalpa Desktop Firstboot" --geometry 600x400 --progressbar "openSUSE Kalpa Desktop Firstboot" 6)
|
|
|
|
run_task() {
|
|
local step="$1"
|
|
local label="$2"
|
|
shift 2
|
|
|
|
qdbus-qt5 "$dbusRef" setLabelText "$label"
|
|
|
|
if "$@"; then
|
|
qdbus-qt5 "$dbusRef" Set "" value "$step"
|
|
else
|
|
kdialog --error "Operation Failed: $label"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
run_task 1 "Waiting for Internet connection" 'until /usr/bin/ping -q -c 1 flathub.org; do sleep 1; done'
|
|
run_task 2 "Adding Flathub Repository" /usr/bin/flatpak remote-add --user --if-not-exists flathub /usr/share/microos-desktop/flathub.flatpakrepo
|
|
run_task 3 "Installing KCalc" /usr/bin/flatpak install --user --noninteractive flathub org.kde.kcalc
|
|
run_task 4 "Installing Ark" /usr/bin/flatpak install --user --noninteractive flathub org.kde.ark
|
|
run_task 5 "Installing KWrite" /usr/bin/flatpak install --user --noninteractive flathub org.kde.kwrite
|
|
|
|
run_task 6 "Cleaning up" rm -f ~/.config/autostart/kalpa-firstboot.desktop
|
|
|
|
qdbus-qt5 "$dbusRef" close
|