add: xdg-support

- config file XDG support inspired from #511
- added support to try loading scripts from XDG_DATA_HOME, if not present try
  loading from XDG_CONFIG_HOME, if not present try loading the usual way.
This commit is contained in:
altffour 2021-01-06 17:34:33 +03:00
commit f972d05025
No known key found for this signature in database
GPG key ID: B4ADFA86EDF5CCE9
3 changed files with 45 additions and 15 deletions

View file

@ -1,8 +1,6 @@
#ifndef IRSSI_COMMON_H
#define IRSSI_COMMON_H
#define IRSSI_DIR_FULL "%s/.irssi" /* %s == g_get_home_dir() */
#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */