From 7446f5ce650ca0012dd940ba1079807d4399312b Mon Sep 17 00:00:00 2001 From: eSh Date: Sat, 17 Sep 2022 23:35:02 +0200 Subject: [PATCH] add multiple fix instances check --- bin/periodic/fix-flatpaks-theming | 1 + bin/periodic/fix-theming | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/periodic/fix-flatpaks-theming b/bin/periodic/fix-flatpaks-theming index c4ab141..87f4e53 100755 --- a/bin/periodic/fix-flatpaks-theming +++ b/bin/periodic/fix-flatpaks-theming @@ -1,4 +1,5 @@ #!/bin/sh +pidof -sq -o %PPID -x "$(basename "$0")" && exit while :; do rm -r ~/.themes/* 2> /dev/null rsync -av --progress /usr/share/themes/* ~/.themes/ --exclude Windowck diff --git a/bin/periodic/fix-theming b/bin/periodic/fix-theming index 7ea4d30..053be92 100755 --- a/bin/periodic/fix-theming +++ b/bin/periodic/fix-theming @@ -20,6 +20,7 @@ sync_icon_theme() { sed -i "s/^icon_theme=.*$/icon_theme=$icon_theme/" "$HOME"/.config/qt6ct/qt6ct.conf } +pidof -sq -o %PPID -x "$(basename "$0")" && exit while :; do # Get the current system theme theme_new=$(xfconf-query -c xsettings -p /Net/ThemeName)