Bug 478723

Summary: Okulars startup get delayed by accessing recent files which are on a unavailable network drive
Product: [Applications] okular Reporter: me
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.08.4   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description me 2023-12-19 12:43:23 UTC
SUMMARY
When the list of recent files contains entries from e.g. an unmounted samba drive, the startup is delayed as okular tries to stat all recent files

STEPS TO REPRODUCE
1. open files from a connected samba drive
2. unmount the samba drive
3. open okular by clicking on a local pdf file

OBSERVED RESULT
it takes a long time until okular appears

EXPECTED RESULT
okular should immediately start and show the requested file

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
if accessing the recent files is really needed, could that be done in the backgroud?