Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
rugyada committed Jul 28, 2022
1 parent fa57d48 commit 604dc57
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions usr/share/oma-welcome/apps/install-haruna.run
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
if which haruna &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"haruna is already installed."
else
APP=$"Haruna"
DB=$(kdialog --title $"OpenMandriva" --progressbar $"Installing $APP" 0)
qdbus $DB org.kde.kdialog.ProgressDialog.showCancelButton false
pkexec dnf install --assumeyes haruna
qdbus $DB org.kde.kdialog.ProgressDialog.close
if which haruna &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Installation succeeded."
else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
15 changes: 15 additions & 0 deletions usr/share/oma-welcome/apps/install-nheko.run
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
if which nheko &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"nheko is already installed."
else
APP=$"Nheko"
DB=$(kdialog --title $"OpenMandriva" --progressbar $"Installing $APP" 0)
qdbus $DB org.kde.kdialog.ProgressDialog.showCancelButton false
pkexec dnf install --assumeyes nheko
qdbus $DB org.kde.kdialog.ProgressDialog.close
if which nheko &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Installation succeeded."
else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
15 changes: 15 additions & 0 deletions usr/share/oma-welcome/apps/install-strawberry.run
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
if which strawberry &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"strawberry is already installed."
else
APP=$"Strawberry"
DB=$(kdialog --title $"OpenMandriva" --progressbar $"Installing $APP" 0)
qdbus $DB org.kde.kdialog.ProgressDialog.showCancelButton false
pkexec dnf install --assumeyes strawberry
qdbus $DB org.kde.kdialog.ProgressDialog.close
if which strawberry &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Installation succeeded."
else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi

0 comments on commit 604dc57

Please sign in to comment.