To avoid freezes, don't check if recent files exist
commitd1eff5692b8da32b75822d4a6fec8c1d81f1170b
authorMax Gaukler <development@maxgaukler.de>
Thu, 7 Mar 2024 19:45:25 +0000 (7 20:45 +0100)
committerMax Gaukler <development@maxgaukler.de>
Sat, 20 Apr 2024 17:20:53 +0000 (20 19:20 +0200)
tree7e34daa744779b920f012b66f6417eb75b1a75e2
parente4d59748a6cc2b59c044671a1c65b2727f80fee9
To avoid freezes, don't check if recent files exist

Inkscape checked if recent files exist, to clean up the recent files menu and the command palette. Furthermore, for the command palette the modification date of files was queried.
However, this could lead to "freezes" where Inkscape got stuck for 30 seconds or even more. These freezes occured at startup or when opening the command palette.
Therefore, all these file operations are removed.

Background:
Any stat() operation can take very long if the file path refers to an inaccessible drive (Windows: network drive with unreachable host, Linux: unplugged USB drive with automount, nonexistent host with afuse,...).

Fixes https://gitlab.com/inkscape/inkscape/-/issues/2348
src/ui/desktop/menubar.cpp
src/ui/dialog/command-palette.cpp
src/ui/dialog/startup.cpp