diff --git a/po/arch-update.pot b/po/arch-update.pot index 22181d4..ecdacdd 100644 --- a/po/arch-update.pot +++ b/po/arch-update.pot @@ -506,6 +506,11 @@ msgid "" "from your app menu" msgstr "" +#: src/script/arch-update.sh:763 +#, sh-format +msgid "There's already a running instance of the Arch-Update systray applet" +msgstr "" + #: src/script/arch-update-tray.py:118 msgid "Run Arch-Update" msgstr "" diff --git a/po/fr.po b/po/fr.po index c81b2d3..2631b1e 100644 --- a/po/fr.po +++ b/po/fr.po @@ -548,6 +548,11 @@ msgstr "" "immédiatement, vous pouvez lancer l'application \"Arch-Update Systray Applet\" " "depuis votre menu d'application" +#: src/script/arch-update.sh:763 +#, sh-format +msgid "There's already a running instance of the Arch-Update systray applet" +msgstr "Il y a déjà une instance de l'applet systray d'Arch-Update en cours d'exécution" + #: src/script/arch-update-tray.py:118 msgid "Run Arch-Update" msgstr "Lancer Arch-Update" diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 7a7a4b1..45305ff 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -759,6 +759,11 @@ case "${option}" in state_up_to_date fi + if ps -ef | grep "[a]rch-update-tray"; then + error_msg "$(eval_gettext "There's already a running instance of the Arch-Update systray applet")" + exit 3 + fi + arch-update-tray || exit 3 fi ;;