Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(systray): Prevent multiple instances of the systray applet to be able to run at the same time #199

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions po/arch-update.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down
5 changes: 5 additions & 0 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,11 @@ case "${option}" in
state_up_to_date
fi

if pgrep -f arch-update-tray > /dev/null; 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
;;
Expand Down