https://bugs.kde.org/show_bug.cgi?id=367480

--- Comment #105 from Don Curtis <bugrprt21...@online.de> ---
@alx.ku...@gmail.com:

As a workaround until such time as your Distro updates to Frameworks 5.51, you
can add a symbolic link to this Bash script in
'~/.config/plasma-workspace/env/':

#!/bin/bash
#
# Clean Baloo …
#
if [[ -f ~/.local/share/baloo/dateLastCleaned ]]
then
  declare -i BalooLastDate
  BalooLastDate="$(cat ~/.local/share/baloo/dateLastCleaned)"
  declare -i TwoDaysAgo
  TwoDaysAgo="$(date --date='2 days ago' +%Y%m%d)"
  if (( $BalooLastDate < $TwoDaysAgo ))
  then
    balooctl stop
    rm ~/.local/share/baloo/dateLastCleaned
    find ~/.config/ -maxdepth 1 -iname '*baloo*' -execdir /usr/bin/rm '{}' \;
    find ~/.local/share/baloo/ -iname '*index*' -execdir /usr/bin/rm '{}' \;
    date +%Y%m%d > ~/.local/share/baloo/dateLastCleaned
  fi
else
  balooctl stop
  find ~/.config/ -maxdepth 1 -iname '*baloo*' -execdir /usr/bin/rm '{}' \;
  find ~/.local/share/baloo/ -iname '*index*' -execdir /usr/bin/rm '{}' \;
  date +%Y%m%d > ~/.local/share/baloo/dateLastCleaned
fi
#

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to