From d52f136c4e5b0a37abcb4b6d8a2d87b12bdad937 Mon Sep 17 00:00:00 2001 From: rugyada Date: Sat, 15 Jul 2023 10:55:02 +0200 Subject: [PATCH] add arianna --- usr/share/oma-welcome/apps-office.sh.htm | 5 +++++ usr/share/oma-welcome/apps.sh.htm | 5 +++++ usr/share/oma-welcome/apps/install-arianna.run | 15 +++++++++++++++ usr/share/oma-welcome/translation | 2 ++ 4 files changed, 27 insertions(+) create mode 100755 usr/share/oma-welcome/apps/install-arianna.run diff --git a/usr/share/oma-welcome/apps-office.sh.htm b/usr/share/oma-welcome/apps-office.sh.htm index e1b88bc..7f85047 100755 --- a/usr/share/oma-welcome/apps-office.sh.htm +++ b/usr/share/oma-welcome/apps-office.sh.htm @@ -60,6 +60,11 @@ $titlecalibre
$desccalibre

+
  • + + $titlearianna
    + $descarianna

    +
  • $titledia
    diff --git a/usr/share/oma-welcome/apps.sh.htm b/usr/share/oma-welcome/apps.sh.htm index e1b88bc..7f85047 100755 --- a/usr/share/oma-welcome/apps.sh.htm +++ b/usr/share/oma-welcome/apps.sh.htm @@ -60,6 +60,11 @@ $titlecalibre
    $desccalibre

  • +
  • + + $titlearianna
    + $descarianna

    +
  • $titledia
    diff --git a/usr/share/oma-welcome/apps/install-arianna.run b/usr/share/oma-welcome/apps/install-arianna.run new file mode 100755 index 0000000..370b8c8 --- /dev/null +++ b/usr/share/oma-welcome/apps/install-arianna.run @@ -0,0 +1,15 @@ +#!/bin/bash +if which arianna &>/dev/null; then + kdialog --title $"OpenMandriva" --msgbox $"Arianna is already installed." +else + APP=$"Arianna" + DB=$(kdialog --title $"OpenMandriva" --progressbar $"Installing $APP" 0) + qdbus $DB org.kde.kdialog.ProgressDialog.showCancelButton false + pkexec dnf install --assumeyes arianna + qdbus $DB org.kde.kdialog.ProgressDialog.close + if which arianna &>/dev/null; then + kdialog --title $"OpenMandriva" --msgbox $"Installation succeeded." + else + kdialog --title $"OpenMandriva" --msgbox $"Installation failed." + fi +fi diff --git a/usr/share/oma-welcome/translation b/usr/share/oma-welcome/translation index 9dfe48e..462f126 100755 --- a/usr/share/oma-welcome/translation +++ b/usr/share/oma-welcome/translation @@ -149,6 +149,8 @@ titlelokalize=$"Lokalize" desclokalize=$"Computer-aided translation system that focuses on productivity and performance" titlehomebank=$"Homebank" deschomebank=$"Free easy personal accounting for all" +titlearianna=$"Arianna" +descarianna=$"Ebook reader and library management app" #translations of apps-edu.sh.htm titlestellarium=$"Stellarium"