https://bugs.kde.org/show_bug.cgi?id=392206
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] See Also| |https://bugs.kde.org/show_b | |ug.cgi?id=501802 --- Comment #3 from [email protected] --- Still valid as of current KIO master (d913ed09). Can't be fully disabled without a fix in KFileWidget:accept(), but can be partially mitigated by setting: kwriteconfig6 --group "KFileDialog Settings" --key "Maximum of recent URLs" 0 kwriteconfig6 --group "KFileDialog Settings" --key "Maximum of recent files" 0 These settings are defined here: https://invent.kde.org/frameworks/kio/-/blob/d913ed0900a5304928fc5a32c40f00e01f3f8ce4/src/filewidgets/defaults-kfile.h#L22 set in KFileWidgetPrivate::readRecentFiles(): https://invent.kde.org/frameworks/kio/-/blob/d913ed0900a5304928fc5a32c40f00e01f3f8ce4/src/filewidgets/kfilewidget.cpp#L2146 and used in KFileWidget::accept(): https://invent.kde.org/frameworks/kio/-/blob/d913ed0900a5304928fc5a32c40f00e01f3f8ce4/src/filewidgets/kfilewidget.cpp#L876 Setting them to zero will cause only the single most recent directory to be retained in .local/state/*staterc for apps using KFileDialog, e.g. this is okularstaterc after opening $HOME/test.pdf: $ cat .local/state/okularstaterc [KFileDialog Settings] Recent URLs[$e]=file:$HOME/ [MainWindow] (...) The proper fix would probably be along the lines of preventing KFileWidget:accept() from calling "KRecentDirs::add()" when "[KFileDialog Settings] Maximum of recent URLs" is 0 (or not calling "d->saveRecentFiles()") and actually setting "Maximum of recent {URLs,files}" to 0 when "System Settings -> Recent Files -> Remember opened documents" is set to "Do not remember" (see also https://bugs.kde.org/show_bug.cgi?id=501802). -- You are receiving this mail because: You are watching all bug changes.
