Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/settings.h @ 2204:ccd4ffa41a1b
Use XDG configuration directory if a config file exists
If $XDG_CONFIG_HOME (or $HOME/.config) contains a file "mcabber/mcabberrc"
it is used and $XDG_CONFIG_HOME/mcabber becomes the main mcabber
configuration directory.
(The ~/.mcabber/mcabberrc is still checked first.)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 17 Oct 2015 20:17:30 +0200 |
parents | e6d355e50d7a |
children | e00ae0763468 |
line wrap: on
line diff
--- a/mcabber/mcabber/settings.h Mon Oct 12 17:19:19 2015 +0200 +++ b/mcabber/mcabber/settings.h Sat Oct 17 20:17:30 2015 +0200 @@ -30,6 +30,7 @@ typedef gchar *(*settings_guard_t)(const gchar *key, const gchar *new_value); void settings_init(void); +const gchar *settings_get_mcabber_config_dir(void); int cfg_read_file(char *filename, guint mainfile); guint parse_assigment(gchar *assignment, gchar **pkey, gchar **pval); gboolean settings_set_guard(const gchar *key, settings_guard_t guard);