irssi/scripts
altffour 4059827741
xdg: implement a better way
Brief about changes:
- add get_irssi_cache_dir()
- add get_irssi_runtime_dir()
- remove is_xdg_supported()

About the proposed implementation:
- use XDG only when the user has the XDG_CONFIG_HOME/irssi directory
- irssi_dir would equal XDG_DATA_HOME/irssi or ~/.irssi, depending on
whether XDG is enabled or not, respectively.
- if xdg is enabled, variables irssi_cache, irssi_runtime, would equal
their respective XDG paths.
- if xdg is *not* enabled, variables irssi_cache, irssi_runtime, would
equal irssi_dir

Notes for future code:
- functions that use the irssi config file would use get_irssi_config()
- functions that use the irssi data directory would use get_irssi_dir()
- functions that use the irssi cache directory would use
get_irssi_cache_dir()
- functions that use the irssi runtime directory would use
get_irssi_runtime_dir()

Stuff that are still missing for complete implementation:
- add checks to ensure the new referenced directories are present
- docs
2021-01-07 13:26:45 +03:00
..
examples Remove .cvsignore files. 2008-01-21 11:49:10 +00:00
autoop.pl Updated the bundled scripts to their latest version (#143) 2015-06-12 19:40:15 +02:00
autorejoin.pl run syncscripts.sh 2017-10-25 16:23:14 +02:00
buf.pl run syncscripts.sh 2018-11-09 11:11:10 +01:00
dns.pl run syncscripts.sh 2019-02-11 18:04:59 +01:00
kills.pl Updated the bundled scripts to their latest version (#143) 2015-06-12 19:40:15 +02:00
mail.pl run syncscripts.sh 2017-10-25 16:23:14 +02:00
Makefile.am Proper removal of sb_search.pl (#143) 2015-06-12 20:44:32 +02:00
meson.build meson build support 2019-07-10 09:25:26 +02:00
mlock.pl Updated the bundled scripts to their latest version (#143) 2015-06-12 19:40:15 +02:00
quitmsg.pl Updated the bundled scripts to their latest version (#143) 2015-06-12 19:40:15 +02:00
scriptassist.pl xdg: implement a better way 2021-01-07 13:26:45 +03:00
usercount.pl run syncscripts.sh 2018-11-09 11:11:10 +01:00