mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02:00
implement API changes to accomodate for XDG
- add is_xdg_supported() (C and Perl). - use $XDG_CONFIG_HOME/irssi/ only when it is present. - fallback mechanism added. - scripts are run from $XDG_DATA_HOME/irssi/scripts/[autorun], if and only if xdg is used.
This commit is contained in:
parent
bfb9ca19f5
commit
e6b9a07f9a
4 changed files with 51 additions and 48 deletions
|
|
@ -599,6 +599,13 @@ PPCODE:
|
|||
XPUSHs(sv_2mortal(new_pv(ret)));
|
||||
g_free_not_null(ret);
|
||||
|
||||
bool
|
||||
is_xdg_supported()
|
||||
CODE:
|
||||
RETVAL = (bool) is_xdg_supported();
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
char *
|
||||
get_irssi_dir()
|
||||
CODE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue