Ticket #13 (new defect)

Opened 2 years ago

Last modified 15 months ago

setroubleshoot should use FreeDesktop config dirs

Reported by: jjardon Owned by: dwalsh
Priority: major Component: framework
Version: Keywords:
Cc: Blocked By:
Blocking:

Description

According to fd.o specification, it should put user preferences in $XDG_CONFIG_HOME.

Any user date should go to $XDG_DATA_HOME.

Any cache stuffs should go to $XDG_CACHE_HOME.

More infos:

http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html https://live.gnome.org/GnomeGoals/XDGConfigFolders

Glib convenience functions here: http://developer.gnome.org/glib/2.32/glib-Miscellaneous-Utility-Functions.html#g-get-user-cache-dir

Change History

comment:2 Changed 16 months ago by eheintzmann

More details at : http://ploum.net/post/207-modify-your-application-to-use-xdg-folders https://live.gnome.org/GnomeGoals/XDGConfigFolders

Full specification can be found at: http://standards.freedesktop.org/basedir-spec/latest/

The Freedesktop.org XDG base directory specification have good de facto adoption. It has been adopted by:

I think that @APPNAME@ should use same locations than the vast majority of Desktop environment and applications.

There are real advantages of following this specification :

  • a lot less cluttered $HOME
  • Make backups a lot more safer and easier. Backuping your $XDG_DATA_HOME along with your files is enough (or just excluding $XDG_CACHE_HOME)
  • A lot easier to reset a default configuration if you want/need it (and without any risk to loose informations). Even for the software itself could choose to reset $XDG_CONFIG_HOME if needed.
  • Avoid some strange bugs that happens because you had a old version of some configuration file
  • A lot more of flexibility and portability because no path are hardcoded.

comment:3 Changed 15 months ago by jdennis

  • Owner changed from jdennis@… to dwalsh
Note: See TracTickets for help on using tickets.