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

John Andersen <jsam...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsam...@gmail.com

--- Comment #42 from John Andersen <jsam...@gmail.com> ---
Apparently the hack installed back in August of 2014 to prevent indexing
anything but .txt file under 50 Meg is still resident in some packages of
extractor/app.cpp:

 if (mimetype == QLatin1String("text/plain")) {
+ if (!url.endsWith(".txt")) {
+ mimetype.clear();
+ }
+
+ QFileInfo fileInfo(url);
+ if (fileInfo.size() >= 50 * 1024 * 1024 ) {
+ mimetype.clear();
+ }

See:
http://webcache.googleusercontent.com/search?q=cache:LUTPrh1zmZ8J:r.git.net/kde-commits/2014-05/msg02993.html+&cd=4&hl=en&ct=clnk&gl=us

I would like to index a whole boatload of source code, but because it  does not
have a file extension of .txt the extractor fails, so then Baloo gets nothing
to index.

It works fine on KDE4, but on Plasma 5  version 15.12.0 (Manjaro / Arch)  I
can't index any plain text files that do not end with an extension of .txt.

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

Reply via email to