GNOME Bugzilla – Bug 675400
Use XDG dirs instead of $HOME
Last modified: 2012-06-02 02:42:31 UTC
Currently we load .pangorc and .pango.aliases files from HOME. These should probably prefer the XDG Base dirs instead. filename = g_build_filename (home, ".pangorc", NULL); filename = g_strconcat (home, G_DIR_SEPARATOR_S ".pango.aliases", NULL);
Created attachment 213842 [details] [review] Read pangorc from XDG_CONFIG_HOME Look for the rcfile in $XDG_CONFIG_HOME/pango/pangorc instead of ~/.pangorc.
Created attachment 213843 [details] [review] Read pangox.aliases from XDG_CONFIG_HOME Change the X fontmap code to look for the aliases file in $XDG_CONFIG_HOME/pango/pangox.aliases instead of ~/.pangox_aliases
The pangox stuff better just go to /dev/null... The rest, if you tested it and it works, should go in.
The following fixes have been pushed: ca6555a Read pangox.aliases from XDG_CONFIG_HOME 926aa9b Read pangorc from XDG_CONFIG_HOME
Created attachment 215475 [details] [review] Read pangox.aliases from XDG_CONFIG_HOME Change the X fontmap code to look for the aliases file in $XDG_CONFIG_HOME/pango/pangox.aliases instead of ~/.pangox_aliases
Created attachment 215476 [details] [review] Read pangorc from XDG_CONFIG_HOME Look for the rcfile in $XDG_CONFIG_HOME/pango/pangorc instead of ~/.pangorc.