I think that Stellarium 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.
According to XDG Base directory specification: ploum.net/ post/207- modify- your-applicatio n-to-use- xdg-folders /live.gnome. org/GnomeGoals/ XDGConfigFolder s
User data should go into $XDG_DATA_HOME (which default to ~/.local/share),
user preferences should go into $XDG_CONFIG_HOME (which default to ~/.config)
and cached data should go to $XDG_CACHE_HOME (which default to ~/.cache).
More details at :
http://
https:/
Full specification can be found at: standards. freedesktop. org/basedir- spec/latest/
http://
The Freedesktop.org XDG base directory specification have good de facto adoption. /live.gnome. org/GnomeGoals/ XDGConfigFolder s ) /bugzilla. gnome.org/ show_bug. cgi?id= 646631 ) techbase. kde.org/ KDE_System_ Administration/ XDG_Filesystem_ Hierarchy# Freedesktop. org_and_ Standard_ Directories ) harmattan- dev.nokia. com/docs/ library/ html/qt4/ qsettings. html#setPath ) docs.xfce. org/xfce/ xfce4-session/ advanced in Files and Environment Variables ) /trac.videolan. org/vlc/ ticket/ 1267 ) /bugzilla. gnome.org/ show_bug. cgi?id= 518597 ) code.google. com/p/chromium/ issues/ detail? id=16976 ) brainstorm. ubuntu. com/idea/ 6557/ & http:// packages. ubuntu. com/fr/ source/ precise/ libxdg- basedir ) packages. debian. org/squeeze/ libxdg- basedir1 )
It has been adopted by:
- GNOME ( https:/
- GTK+ ( https:/
- KDE ( http://
- QT ( http://
- XFCE ( http://
- LXDE
- Razor-qt
- VLC ( https:/
- GStreamer ( https:/
- Chrome ( http://
- many more upstream applications
- Ubuntu ( http://
- Debian ( http://
- Red Hat
- Fedora
- Suse
- many more distributions
I think that Stellarium 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.