add themes XDG support

- fix is_xdg_supported() not being in common.h
- themes are now loaded from $XDG_DATA_HOME, if and only if xdg paths
are being used
This commit is contained in:
altffour 2021-01-06 19:20:09 +03:00
commit dad31bdfde
No known key found for this signature in database
GPG key ID: B4ADFA86EDF5CCE9
4 changed files with 20 additions and 8 deletions

View file

@ -81,7 +81,7 @@ int is_xdg_supported()
const char *get_irssi_dir(void)
{
return (xdg_support = 1) ? irssi_xdg_dir : irssi_dir;
return irssi_dir;
}
/* return full path for ~/.irssi/config */