[haiku-development] Common location for recent documents, applications, folders?

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Tue, 10 Jul 2018 10:59:27 -0700

Greetings Haiku Developers,

Backstory:
https://review.haiku-os.org/#/c/haiku/+/320/

TL;DR:
I'm trying to consolidate the recent document, application, and folder
settings used throughout the source code or at least in Deskbar,
Tracker, and Backgrounds Prefs to be controlled by a single setting
someplace.

Problem summary:
I naively thought that Deskbar would be the preferred location for
this setting since that's the app where you can currently change the
preference so I went and extended the BDeskbar API for the purpose of
exporting this setting. However, Jérôme Duval pointed out that Deskbar
may not be the best place to keep this setting or best way to
implement this feature and further suggested perhaps somewhere in app
server possibly BRoster would be a better place to store these
settings pointing out that BRoster is responsible for other recent
things like: GetRecentDocuments()

Ask:
Where should these recent count settings live and then how do we pull
them out to be used by Deskbar, Tracker, Backgrounds, and others? The
main choices I'm currently entertaining are Deskbar via BDeskbar or
App Server via BRoster. I'm looking for direction on the "right" way
to handle this so there may be other choices I haven't thought of.

Further discussion:
I realize that this may devolve into "each app should maintain their
own recent documents setting dagnabit" but I am against this on the
basis of the club that has been wielded against me many times in the
past: "sane defaults, not maximum configuration" and also that this
setting has been in Tracker since 2002 and there has never been a way
to actually change the Tracker setting it in Haiku. Any old hat BeOS
guys around (Axel?) can you answer this question? Did OpenTracker
running on BeOS expose a recent documents, applications, folders
setting in it's preferences? I seem to remember being a longer sidebar
of options then compared to on Haiku/more recently.

Other related posts: