Skip to content

Commit

Permalink
add dialog y/n
Browse files Browse the repository at this point in the history
  • Loading branch information
rugyada committed Sep 25, 2024
1 parent e9c4946 commit 2ca7490
Show file tree
Hide file tree
Showing 37 changed files with 169 additions and 69 deletions.
4 changes: 2 additions & 2 deletions usr/share/om-welcome/apps-gaming.sh.htm
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
<span><a class="title" target="hidden" href=./apps/install-warzone.run>$titlewarzone</a></span><br/>$descwarzone</p>
</li>
<li>
<p><a class="title" target="hidden" href=./apps/install-endlesssky.run><img src="images/endlesssky.png" class="alignleft"/>
<span><a class="title" target="hidden" href=./apps/install-endlesssky.run>$titleendlesssky</a></span><br/>$descendlesssky</p>
<p><a class="title" target="hidden" href=./apps/install-endless-sky.run><img src="images/endlesssky.png" class="alignleft"/>
<span><a class="title" target="hidden" href=./apps/install-endless-sky.run>$titleendlesssky</a></span><br/>$descendlesssky</p>
</li>
<li>
<p><a class="title" target="hidden" href=./apps/install-kubrick.run><img src="images/kubrick.svg" class="alignleft"/>
Expand Down
19 changes: 16 additions & 3 deletions usr/share/om-welcome/apps/drakuser.run
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/bin/sh
#!/bin/bash
. /usr/share/htmlscript/helpers
install_if_needed kuser
pkexec kuser
if which kuser &>/dev/null; then
exec kuser
else
APP=$"Kuser"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
pkexec dnf install --assumeyes kuser
ProgressDialog --close
if which kuser &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Installation succeeded."
else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
2 changes: 2 additions & 0 deletions usr/share/om-welcome/apps/install-blinken.run
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
. /usr/share/htmlscript/helpers

if which blinken &>/dev/null; then
exec blinken
else
APP=$"Blinken"
Expand Down
2 changes: 1 addition & 1 deletion usr/share/om-welcome/apps/install-codecs.run
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
if rpm -q x264 &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $" Codecs are already installed.";
else
enable-repo restricted
APP=$"Codecs"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
enable-repo restricted
pkexec dnf --refresh install --assumeyes lib64dvdcss2 faac flac x264 lib64xvid4 lib64dca0 x265 kf6-kimageformats-heif
ProgressDialog --close
if rpm -q x264 &>/dev/null; then
Expand Down
2 changes: 1 addition & 1 deletion usr/share/om-welcome/apps/install-endless-sky.run
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which endless-sky &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Endless Sky is already installed."
exec endless-sky
else
APP=$"Endless Sky"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
Expand Down
2 changes: 1 addition & 1 deletion usr/share/om-welcome/apps/install-gnomeshell.run
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
if rpm -q task-gnome &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Gnome is already installed."
else
enable-repo extra
APP=$"Gnome desktop"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
enable-repo extra
pkexec dnf install --assumeyes task-gnome
ProgressDialog --close
if rpm -q task-gnome &>/dev/null; then
Expand Down
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-kig.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which kig &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Kig is already installed."
exec kig
else
APP=$"Kig"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes kig
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-klettres.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which klettres &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"KLettres is already installed."
exec klettres
else
APP=$"KLettres"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes klettres
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-knavalbattle.run
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
. /usr/share/htmlscript/helpers

if which knavalbattle &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Naval Battle is already installed."
exec knavalbattle
else
APP=$"Naval Battle"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes knavalbattle
else
Expand All @@ -18,3 +19,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-kongress.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which kongress &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Kongress is already installed."
exec kongress
else
APP=$"Kongress"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes kongress
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
2 changes: 1 addition & 1 deletion usr/share/om-welcome/apps/install-kpat.run
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which kpat &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"KPatience is already installed."
exec kpat
else
APP=$"KPatience"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
Expand Down
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-ktuberling.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which ktuberling &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"KTuberling is already installed."
exec ktuberling
else
APP=$"KTuberling"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes ktuberling
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-kturtle.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which kturtle &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"KTurtle is already installed."
exec kturtle
else
APP=$"KTurtle"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes kturtle
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-kubrick.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which kubrick &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Kubrick is already installed."
exec kubrick
else
APP=$"Kubrick"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes kubrick
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-lokalize.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which lokalize &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $" Lokalize is already installed."
exec lokalize
else
APP=$"Lokalize"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
pkexec dnf install --assumeyes lokalize
ProgressDialog --close
if which lokalize &>/dev/null; then
Expand All @@ -13,3 +14,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-marble.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which marble &>/dev/null || which marble-qt &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Marble is already installed."
exec marble
else
APP=$"Marble"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes marble
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-marknote.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which marknote; then
kdialog --title $"OpenMandriva" --msgbox $" Marknote is already installed.";
exec marknote
else
APP=$"Marknote"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
pkexec dnf install --assumeyes marknote
ProgressDialog --close
if which marknote; then
Expand All @@ -13,3 +14,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
2 changes: 1 addition & 1 deletion usr/share/om-welcome/apps/install-mauishell.run
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
if rpm -q maui-shell &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"MauiShell is already installed."
else
enable-repo extra
APP=$"MauiShell"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
enable-repo extra
pkexec dnf install --assumeyes maui-shell
ProgressDialog --close
if rpm -q maui-shell &>/dev/null; then
Expand Down
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-merkuro.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which merkuro-calendar &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Merkuro is already installed."
exec merkuro-calendar
else
APP=$"Merkuro"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes merkuro
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-minuet.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which minuet &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"Minuet is already installed."
exec minuet
else
APP=$"Minuet"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
if [ "0$KDE_SESSION_VERSION" -lt 6 ]; then
pkexec dnf install --assumeyes minuet
else
Expand All @@ -17,3 +18,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-musescore.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which musescore &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"MuseScore is already installed."
exec musescore
else
APP=$"MuseScore"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
pkexec dnf install --assumeyes musescore
ProgressDialog --close
if which musescore &>/dev/null; then
Expand All @@ -13,3 +14,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-nheko.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which nheko &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"nheko is already installed."
exec nheko
else
APP=$"Nheko"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
pkexec dnf install --assumeyes nheko
ProgressDialog --close
if which nheko &>/dev/null; then
Expand All @@ -13,3 +14,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-nulloy.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which nulloy &>/dev/null; then
kdialog --title $"OpenMandriva" --msgbox $"nulloy is already installed."
exec nulloy
else
APP=$"Nulloy"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
pkexec dnf install --assumeyes nulloy
ProgressDialog --close
if which nulloy &>/dev/null; then
Expand All @@ -13,3 +14,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
6 changes: 4 additions & 2 deletions usr/share/om-welcome/apps/install-openshot.run
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
. /usr/share/htmlscript/helpers
if which openshot-qt; then
kdialog --title $"OpenMandriva" --msgbox $" OpenShot is already installed."
exec openshot-qt
else
APP=$"OpenShot"
ProgressDialog $"Installing $APP"
if kdialog --title $"OpenMandriva" --yesno $"Do you want to install $APP?"; then
ProgressDialog $"Installing $APP"
enable-repo extra
pkexec dnf install --assumeyes openshot
ProgressDialog --close
Expand All @@ -14,3 +15,4 @@ else
kdialog --title $"OpenMandriva" --msgbox $"Installation failed."
fi
fi
fi
Loading

0 comments on commit 2ca7490

Please sign in to comment.