SUMMARY If you have a networked item (e.g. through NFS share) in your "open recents" list in kate and you open kate while that network share/document is unavailable, Kate will take 20+ seconds to start. I'm using wayland if that's relevant. STEPS TO REPRODUCE 1. Mount network share 2. Open file from network share (from Dolphin) in kate 3. Close Kate 4. Unmount network share 5. Open Kate OBSERVED RESULT Kate takes 15-30 seconds to start. Clearing recent items in kate will produce expected result. EXPECTED RESULT Kate should open instantly. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 5.26.1 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 Wayland
I think this is due to the stating of files in the KRecentFiles action.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/167
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kwidgetsaddons/-/merge_requests/158
Git commit 6e7ce72254c97e10d02e49ef3180c0f231e11592 by Christoph Cullmann. Committed on 02/11/2022 at 12:04. Pushed by cullmann into branch 'master'. avoid stating files during restore of recent files even for 'local' files this might result in hangs if the mount point is not responsive M +0 -6 src/krecentfilesaction.cpp https://invent.kde.org/frameworks/kconfigwidgets/commit/6e7ce72254c97e10d02e49ef3180c0f231e11592
Git commit 1cb6b7436c39ef03c5bbeb43f96df2fc0211c1cd by Christoph Cullmann. Committed on 02/11/2022 at 12:05. Pushed by cullmann into branch 'master'. avoid stating files during restore of recent files even for 'local' files this might result in hangs if the mount point is not responsive M +0 -7 src/krecentfilesmenu.cpp https://invent.kde.org/frameworks/kwidgetsaddons/commit/1cb6b7436c39ef03c5bbeb43f96df2fc0211c1cd
Git commit bd02b8c5c921595e7764b19fe86a3cd37e9cc1a0 by Christoph Cullmann. Committed on 06/11/2022 at 18:52. Pushed by cullmann into branch 'master'. avoid stall for hanging network shares follow up of fixes for recent files menus M +10 -10 apps/lib/welcomeview/recentitemsmodel.cpp https://invent.kde.org/utilities/kate/commit/bd02b8c5c921595e7764b19fe86a3cd37e9cc1a0
Git commit 41d8c11bc90cb96e3391a03332a6d39500dfa92b by Christoph Cullmann. Committed on 06/11/2022 at 18:53. Pushed by cullmann into branch 'release/22.12'. avoid stall for hanging network shares follow up of fixes for recent files menus (cherry picked from commit bd02b8c5c921595e7764b19fe86a3cd37e9cc1a0) M +10 -10 apps/lib/welcomeview/recentitemsmodel.cpp https://invent.kde.org/utilities/kate/commit/41d8c11bc90cb96e3391a03332a6d39500dfa92b
Nice fix. Now your recent items will not disappear when the drive (with location of recent item) is not mounted. I've seen this history loss a few times and I wanted to fix it. But it is already done now.
Thanks ;)
Now Kate displays the wrong icon for folders in the recent items list on the welcome screen.