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

--- Comment #106 from hotmusic...@mail.bg ---
(In reply to Don Curtis from comment #105)
> @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
> #

Thank you so much! Works perfectly! I placed the script directly into the
folder btw.

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

Reply via email to