Ticket #262 (new enhancement/feature request)

Opened 2 months ago

Last modified 1 month ago

conform to the freedesktop XDG user directories specification

Reported by: Kiddo Assigned to: KaZeR
Priority: major Milestone: version 0.2.0
Component: core Version: svn
Keywords: maintainability data persistence Cc:

Description

As navit's settings autosave is a young/unimplemented feature at the moment, now is the time to make sure that you get the user data directory locations "done right" from the start.

See this Freedesktop spec: http://standards.freedesktop.org/basedir-spec/latest/
Especially: http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html

I first heard about the xdg desktop dirs thing through this post, which does a good job at explaining the issue/challenges that this spec addresses: http://ploum.frimouvy.org/?184-cleaning-user-preferences-keeping-user-data

So, for example, navit would store files like this:
- $XDG_CACHE_HOME/navit/center.txt
- $XDG_CACHE_HOME/navit/destinations.txt
- $XDG_DATA_HOME/navit/maps/
- $XDG_CONFIG_HOME/navit/bookmarks.txt
- $XDG_CONFIG_HOME/navit/various_ui_and_routing_preferences.txt

... with their respective fallbacks (as described in the specs), of course. And the ones in italics are examples of potential files for future autosaved settings.

Change History

12/01/08 15:31:25 changed by Singesang

  • type changed from defect/bug to enhancement/feature request.
  • milestone set to version 0.2.0.