> > Am 25.04.2008 um 19:24 schrieb Ryan Leavengood: > > > On Fri, Apr 25, 2008 at 1:10 PM, Gabriele Biffi <mlist@xxxxxxxxx> > > wrote: > >> > >> Nobody is imposing anything. If you don't like the Pictures > > > folder, > >> delete > >> it. It is a suggestion, and also apps that works with pictures may > >> use it as > >> the default folder. > > > > I think it would be better for Haiku to *suggest* a standard for > > folders, and applications can create them when needed. It should > > still > > be configurable by the user of course. > > The important thing here would be some (C) API or environment > variables to retrieve such folder locations. Otherwise applications > or > libraries (e.g., glib 2.15) need to hardcode them, which leads to > "imposing". There is already an API for this: http://www.beunited.org/bebook/The%20Storage%20Kit/Directory.html#find_directory%28%29 and /bin/finddir -l There is also a FreeDesktop standard that mandates some environment variables to specify those: http://www.freedesktop.org/wiki/Specifications/basedir-spec we can easily export those from SetupEnvironment like: export XDG_DESKTOP_DIR="$(finddir B_DESKTOP_DIRECTORY)" export XDG_TEMPLATES_DIR="$(finddir B_USER_SETTINGS_DIRECTORY)/Tracker/ Tracker New Templates" ... François.