This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Rename causes Baloo to loose file

Tags: None
(comma "," separated)
greggb
Registered Member
Posts
15
Karma
0
OS

Rename causes Baloo to loose file

Mon Feb 15, 2021 7:04 pm
Renaming a file seems to cause Baloo to loose the index entry for it. Can someone confirm that this is a bug and not just me.

Create an empty file - baloosearch for filename works. Remove one letter from the filename and baloosearch does not find the new filename.

Code: Select all
[ ~]$ cat > zwzwzw.txt
[o ~]$ ll zwz*
-rw-r--r-- 1 gregg gregg 0 2021-02-15 13:48 zwzwzw.txt
[ ~]$ baloosearch zwzw
/home/gregg/zwzwzw.txt
Elapsed: 6.52226 msecs
[ ~]$ balooshow zwzwzw.txt
7611674186023683 66307 1772231 zwzwzw.txt [/home/gregg/zwzwzw.txt]
        Mtime: 1613414927 2021-02-15T13:48:47
        Ctime: 1613414927 2021-02-15T13:48:47
[ ~]$ mv zwzwzw.txt zwzwz.txt
[ ~]$ baloosearch zwzw
Elapsed: 0.244316 msecs
[ ~]$ balooshow zwzwz.txt
7611674186023683 66307 1772231 zwzwz.txt [/home/gregg/zwzwz.txt]
        Mtime: 1613414927 2021-02-15T13:48:47
        Ctime: 1613414927 2021-02-15T13:48:47


Using Manjaro; KDE 5.20.5; Frameworks 5.78.0; Qt 5.15.2
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS
Confirmed, Tumbleweed with Frameworks 5.78.o, Plasma 5.20.5 y Qt 5.12.2.

The problem is "File Name Terms:", you can show it using BalooShow -x, are emptied when you rename a file.

As a bad workaround you can clear metadata before renaming the file. Yes, I told you, is a really bad workarount.

Last edited by Ignacio Serantes on Tue Feb 16, 2021 8:09 pm, edited 1 time in total.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
greggb
Registered Member
Posts
15
Karma
0
OS
Thanks for confirming it. When I've got a minute I'll file a bug report.
greggb
Registered Member
Posts
15
Karma
0
OS
I've filed a bug report https://bugs.kde.org/show_bug.cgi?id=433116

There was already a similar bug https://bugs.kde.org/show_bug.cgi?id=392793 But it is hard to tell if it is the same issue. 392793 relates to searching and renaming in Dolphin, which seems to react differently to the renamed file. Anyway, have to wait and see if it gets flagged as a duplicate.
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS
Hi,

I fixed the problem and created packages for openSUSE and for the brave this could be a temporal solution. I intend to maintain these packages until the problem is fixed.

The repository is available https://download.opensuse.org/repositories/home:/serantes:/branches:/openSUSE:/Factory/openSUSE_Factory/.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]