Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
devel:microos
plasma-branding-MicroOS
mod-firstboot
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mod-firstboot of Package plasma-branding-MicroOS
#!/bin/sh dbusRef=`kdialog --title "MicroOS Desktop Firstboot" --geometry 600x400 --progressbar "MicroOS Desktop Firstboot" 7` qdbus6 $dbusRef setLabelText "Waiting for Internet connection" until /usr/bin/ping -q -c 1 flathub.org; do sleep 1; done qdbus6 $dbusRef Set "" value 1 qdbus6 $dbusRef setLabelText "Adding Flathub Repository" /usr/bin/flatpak remote-add --user --if-not-exists flathub /usr/share/microos-desktop/flathub.flatpakrepo if [ "$?" != 0 ] ; then kdialog --error \ "Adding Flathub Repo Failed" exit 1 fi qdbus6 $dbusRef Set "" value 2 qdbus6 $dbusRef setLabelText "Installing Firefox" /usr/bin/flatpak install --user --noninteractive flathub org.mozilla.firefox if [ "$?" != 0 ] ; then kdialog --error \ "Installing Firefox Failed" exit 1 fi qdbus6 $dbusRef Set "" value 3 qdbus6 $dbusRef setLabelText "Installing Calculator" /usr/bin/flatpak install --user --noninteractive flathub org.kde.kcalc if [ "$?" != 0 ] ; then kdialog --error \ "Installing Calculator Failed" exit 1 fi qdbus6 $dbusRef Set "" value 4 qdbus6 $dbusRef setLabelText "Installing Ark" /usr/bin/flatpak install --user --noninteractive flathub org.kde.ark if [ "$?" != 0 ] ; then kdialog --error \ "Installing Ark Failed" exit 1 fi qdbus6 $dbusRef Set "" value 5 qdbus6 $dbusRef setLabelText "Setting Default Browser" kwriteconfig6 --file ~/.config/kdeglobals --group General --key BrowserApplication org.mozilla.firefox.desktop qdbus6 $dbusRef Set "" value 6 qdbus6 $dbusRef setLabelText "Cleaning up" rm ~/.config/autostart/mod-firstboot.desktop qdbus6 $dbusRef Set "" value 7 if [ "$?" != 0 ] ; then kdialog --error \ "Firstboot Configuration Error" fi kwriteconfig6 --file ~/.config/kdeglobals --group General --key BrowserApplication org.mozilla.firefox.desktop qdbus6 $dbusRef close
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor