[Gpredict-svn] SF.net SVN: gpredict:[963] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <aa...@us...> - 2011-12-24 14:42:59
|
Revision: 963 http://gpredict.svn.sourceforge.net/gpredict/?rev=963&view=rev Author: aa1vs Date: 2011-12-24 14:42:52 +0000 (Sat, 24 Dec 2011) Log Message: ----------- Honor XDG_CONFIG_HOME environment variable for configuration directory. (Bug 3463810) Modified Paths: -------------- trunk/ChangeLog trunk/NEWS trunk/src/compat.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-12-06 21:41:46 UTC (rev 962) +++ trunk/ChangeLog 2011-12-24 14:42:52 UTC (rev 963) @@ -1,3 +1,9 @@ +2011-12-24 Charles Suprin <hamaa1vs at gmail.com> + + * src/compat.c + Honor XDG_CONFIG_HOME environment variable for configuration directory. (Bug 3463810) + + 2011-12-06 Alexandru Csete <oz9aec at gmail.com> * src/about.c: Modified: trunk/NEWS =================================================================== --- trunk/NEWS 2011-12-06 21:41:46 UTC (rev 962) +++ trunk/NEWS 2011-12-24 14:42:52 UTC (rev 963) @@ -24,8 +24,8 @@ - Fixed bug 3437555: Graphical Glitch Plotting Footprints near pole. - Fixed bug 3441490: Satellite Nickname Not escaped for PANGO. - Fixed bug 3451841: Typos. +- Fixed bug 3463810: XDG Base Directory Specification. - Changes in version 1.3 (1 Mar 2011) - Feature request 2873824: Flip Passes. Modified: trunk/src/compat.c =================================================================== --- trunk/src/compat.c 2011-12-06 21:41:46 UTC (rev 962) +++ trunk/src/compat.c 2011-12-24 14:42:52 UTC (rev 963) @@ -207,7 +207,7 @@ /** \brief Get user configuration directory. * - * Linux: $HOME/.config/Gpredict + * Linux: $HOME/.config/Gpredict or $XDG_CONFIG_HOME/Gpredict if $XDG_CONFIG_HOME is defined * Windows: C:\Documents and Settings\username\Gpredict * Mac OS X: /home/username/Library/Application Support/Gpredict * @@ -219,9 +219,8 @@ gchar *dir = NULL; #ifdef G_OS_UNIX - dir = g_strconcat (g_get_home_dir(), G_DIR_SEPARATOR_S, - ".config", G_DIR_SEPARATOR_S, - "Gpredict", NULL); + /* glib is kind enough to provide a function for this */ + dir = g_strconcat(g_get_user_config_dir (),G_DIR_SEPARATOR_S,"Gpredict",NULL); #endif #ifdef G_OS_WIN32 // FIXME: does this work? This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |