From cfafc046280929e6807f62f8a6e05791059af732 Mon Sep 17 00:00:00 2001 From: shenmo Date: Thu, 20 Apr 2023 08:43:26 +0000 Subject: [PATCH] update tool/spark-dstore-patch. Signed-off-by: shenmo --- tool/spark-dstore-patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tool/spark-dstore-patch b/tool/spark-dstore-patch index b03c882..beebbdc 100755 --- a/tool/spark-dstore-patch +++ b/tool/spark-dstore-patch @@ -75,6 +75,11 @@ for app in $(enumAppInfoList); do done wait +if [ "$1" = "--debug" ]; then + echo "Cleaning links..." +fi + + find /usr/share/applications -xtype l -delete > /dev/null 2>&1 & find /usr/share/icons -xtype l -delete > /dev/null 2>&1 & find /usr/share/mime/packages -xtype l -delete > /dev/null 2>&1 & @@ -93,5 +98,9 @@ update-desktop-database -q > /dev/null 2>&1 & update-mime-database -V /usr/share/mime > /dev/null 2>&1 & glib-compile-schemas /usr/share/glib-2.0/schemas/ > /dev/null 2>&1 & -wait +if [ "$1" = "--debug" ]; then + wait +fi + + echo "----------------Finished----------------"