Bug 505179 - Only 30 recent files are shown
Summary: Only 30 recent files are shown
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (other bugs)
Version First Reported In: 25.04.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-03 19:20 UTC by Thomas Bertels
Modified: 2025-09-30 12:51 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bertels 2025-06-03 19:20:17 UTC
SUMMARY
Only 30 recently used files are shown in Dolphin's Recent files.

STEPS TO REPRODUCE
1. Open 31 different files or more
2. Open recentlyused:/files/?limit=99999 in Dolphin

OBSERVED RESULT
Only 30 recently used files are shown

EXPECTED RESULT
Up to 99999 recently used files are shown

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
Search indexing is disabled.
/home/[username]/.local/share/kactivitymanagerd/resources/database shows more 30 files when opened with DB Browser for SQLite.
Comment 1 TraceyC 2025-06-09 22:01:43 UTC
I confirm this limitation on git-master that even with Settings - Recent Files
Keep history: Forever
For all applications

This looks intentional, I'll let the Dolphin developers confirm. If it is, we could consider a setting to raise / configure the number shown in Dolphin
Comment 2 Thomas Bertels 2025-06-10 08:33:49 UTC
The limit is set to 30 in kio-extras when no limit value can be parsed: https://github.com/KDE/kio-extras/blob/7fadfd704993626647384bae2c3fa7d07b29ee34/recentlyused/recentlyused.cpp#L68

int queryLimit(QUrl url)
{
    const auto urlQuery = QUrlQuery(url);
    // limit parameter
    if (urlQuery.hasQueryItem(QStringLiteral("limit"))) {
        const auto limitValue = urlQuery.queryItemValue(QStringLiteral("limit"));
        bool parseOk;
        const auto limitInt = limitValue.toInt(&parseOk);
        if (parseOk) {
            return limitInt;
        }
    }
    return 30;
}

queryLimit(QUrl url) is called in
KIO::WorkerResult RecentlyUsed::listDir(const QUrl &url)
https://github.com/KDE/kio-extras/blob/7fadfd704993626647384bae2c3fa7d07b29ee34/recentlyused/recentlyused.cpp#L217

and listDir may be called by
ForwardingWorkerBase::listDir(QUrl::fromLocalFile(path));
https://github.com/KDE/kio-extras/blob/7fadfd704993626647384bae2c3fa7d07b29ee34/activities/KioActivities.cpp#L163

If that's case, QUrl::fromLocalFile(path) may be the culprit.
Comment 3 Méven 2025-09-10 14:02:47 UTC
Using 
recentlyused:/files/?limit=100 should list 100 recent files.
For some reason it didn't work on my system.

But
recentlyused:/files/?limit=10 works to reduce the number of results.
Comment 4 Bug Janitor Service 2025-09-27 09:47:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/469
Comment 5 Méven 2025-09-27 09:52:03 UTC
Git commit 77a52d57e1ed6d6e3b6e9f333b27e91d9d6a2078 by Méven Car.
Committed on 27/09/2025 at 09:47.
Pushed by meven into branch 'master'.

recentlyused: take into account passed in limit argument

The 30 default limit is set in queryLimit.

M  +1    -1    recentlyused/recentlyused.cpp

https://invent.kde.org/network/kio-extras/-/commit/77a52d57e1ed6d6e3b6e9f333b27e91d9d6a2078
Comment 6 Thomas Bertels 2025-09-27 13:06:39 UTC
It does sound obvious now that you say it.

Looking forward to get that fix!
Comment 7 Bug Janitor Service 2025-09-30 12:42:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/471
Comment 8 Méven 2025-09-30 12:48:45 UTC
Git commit c20c20d09826680727ceb81a9708149d76251d17 by Méven Car.
Committed on 30/09/2025 at 12:42.
Pushed by meven into branch 'release/25.08'.

recentlyused: take into account passed in limit argument

The 30 default limit is set in queryLimit.


(cherry picked from commit 77a52d57e1ed6d6e3b6e9f333b27e91d9d6a2078)

Co-authored-by: Méven Car <meven@kde.org>

M  +1    -1    recentlyused/recentlyused.cpp

https://invent.kde.org/network/kio-extras/-/commit/c20c20d09826680727ceb81a9708149d76251d17
Comment 9 Méven Car 2025-09-30 12:51:14 UTC
(In reply to Thomas Bertels from comment #6)
> It does sound obvious now that you say it.
> 
> Looking forward to get that fix!

25.08.2, Thursday, October 9

FYI Source: https://community.kde.org/Schedules/KDE_Gear_25.08_Schedule

All our release schedule are known in advance, you can google "kde plasma releseae schedule" for instance.