From 8f4115c157c6b422e5fc67066b473d51a5258948 Mon Sep 17 00:00:00 2001 From: Mislav Pukljak Date: Fri, 14 Jun 2024 10:54:32 +0200 Subject: [PATCH 1/2] fix the chrome shut down problem on changing theme --- bin/omakub-theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/omakub-theme b/bin/omakub-theme index 46a924e..6d11384 100644 --- a/bin/omakub-theme +++ b/bin/omakub-theme @@ -14,7 +14,9 @@ if [ -n "$THEME" ] && [ "$THEME" != "<<-back" ]; then # Chrome theme update if gum confirm "Do you want to update Chrome theme? If yes, Chrome will be restarted!"; then - pkill -9 chrome + pkill -f chrome + wait +k source $OMAKUB_PATH/themes/chrome/$THEME.sh google-chrome > /dev/null 2>&1 & fi From 1f38a805f071940686fe4175b202a10fd7e01718 Mon Sep 17 00:00:00 2001 From: Mislav Pukljak Date: Fri, 14 Jun 2024 11:20:38 +0200 Subject: [PATCH 2/2] fix: typo --- bin/omakub-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omakub-theme b/bin/omakub-theme index 6d11384..6c0f95c 100644 --- a/bin/omakub-theme +++ b/bin/omakub-theme @@ -16,7 +16,7 @@ if [ -n "$THEME" ] && [ "$THEME" != "<<-back" ]; then if gum confirm "Do you want to update Chrome theme? If yes, Chrome will be restarted!"; then pkill -f chrome wait -k + source $OMAKUB_PATH/themes/chrome/$THEME.sh google-chrome > /dev/null 2>&1 & fi