Commit graph

6,225 commits

Author SHA1 Message Date
altffour
19aee3096e
xdg: bump ABI version 2021-01-11 16:36:08 +03:00
altffour
b01d0c021d
xdg: use if/else in place of shortened if 2021-01-11 16:31:26 +03:00
altffour
a554e624ff
xdg: fix bug when specifying home directory
When specifying home-dir using --home would skip the part where
irssi_cache_dir & irssi_runtime_dir to be uninitialized. Fix that by
correctly assigning the variables in question, when irssi_dir == NULL.
2021-01-11 16:18:55 +03:00
altffour
059c2a04ea
xdg: apply clang-format patch 2021-01-11 15:58:33 +03:00
altffour
a3ff6baafb
xdg: replace stat() with g_file_test()
- title
- resolve dirp being leaked if XDG directory is found
2021-01-11 15:51:38 +03:00
altffour
0289a149e6
xdg: fix compile errors 2021-01-09 20:07:31 +03:00
altffour
d5bcf150c1
xdg: add helper function to ensure dir exist 2021-01-09 12:13:30 +03:00
altffour
5c59b96ddd
xdg: add docs to mention XDG 2021-01-07 14:55:11 +03:00
altffour
95ae4f1ed4
xdg: init_configfiles() accomodate for new paths
- if xdg is being used, check if the special directories exist, if so,
create them
2021-01-07 14:34:51 +03:00
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
altffour
9175ee0bc1
attempt to fix scriptassist.pl 2021-01-07 12:35:06 +03:00
altffour
9123c6f178
add logic to default to XDG disabled
- defaults to XDG disabled unless the directory is present
2021-01-06 19:46:52 +03:00
altffour
a7e91f0ef2
add XDG support to log/modules/fe-text
- title
- fixed some comments refering to ~/.irssi
2021-01-06 19:37:33 +03:00
altffour
43e956d16b
fix xdg support missing in one theme file
- fix some missed get_irssi_dir() usages
- fix comment in src/core/settings.c refering to ~/.irssi
2021-01-06 19:28:11 +03:00
altffour
dad31bdfde
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
2021-01-06 19:20:09 +03:00
altffour
e6b9a07f9a
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.
2021-01-06 19:07:18 +03:00
altffour
bfb9ca19f5
fix typos 2021-01-06 18:02:42 +03:00
altffour
f972d05025
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.
2021-01-06 17:34:33 +03:00
ailin-nemui
a1cbb8d28f
Merge pull request #1247 from ailin-nemui/clang-format-checker
fix clang-format-xs formatting whole file
2021-01-04 16:17:59 +01:00
Ailin Nemui
e08aca6c85 fix clang-format-xs formatting whole file
incomplete fix in #1234
2021-01-04 16:06:10 +01:00
ailin-nemui
9f1822be3d
Merge pull request #1245 from ailin-nemui/meson-cc-links
use cc.links in meson.build to fix regression of meson 0.56
2021-01-04 10:17:51 +01:00
Ailin Nemui
0706ad14fc use cc.links in meson.build to fix regression of meson 0.56
fixes #1235 reported by dcbaker
2021-01-04 08:37:56 +01:00
ailin-nemui
cfc2ddf56a
Merge pull request #1244 from ailin-nemui/empty-perl-lib
error out on empty perlmodlib, for example non-existant vendor
2021-01-04 00:48:19 +01:00
Ailin Nemui
06396e9c8f error out on empty perlmodlib, for example non-existant vendor
reported by Xogium
2021-01-03 23:07:27 +01:00
ailin-nemui
581c43ed1e
Merge pull request #1232 from vague666/fix_1228
Implement priority on the matched lines for /hilight
2020-12-14 15:22:56 +01:00
vague666
69396482be style format change 2020-12-02 14:33:23 +01:00
ailin-nemui
f57dcfe90d
Merge pull request #1234 from ailin-nemui/fix/perlsignals
Copy Perl signal arguments prior to running callbacks
2020-11-14 19:43:10 +01:00
Ailin Nemui
c9ccf9867f Make a copy of the signal arguments so we don't have to worry about the stack
plug some mem leaks

later copy
2020-11-12 13:00:02 +01:00
Ailin Nemui
5f7d274ec5 fix clang-format-xs formatting whole file
regression of #1230
2020-11-12 13:00:02 +01:00
ailin-nemui
e0292665c1
Merge pull request #1230 from ailin-nemui/fix-clang-format-xs-opts
fix clang-format-xs option parser by using getopt
2020-10-27 10:39:25 +01:00
ailin-nemui
dd8478dcde
Merge pull request #1231 from ailin-nemui/gh-actions
keep up with github-actions changes
2020-10-27 10:27:46 +01:00
vague666
323b60f339 Initialize tmprec 2020-10-27 09:49:54 +01:00
Ailin Nemui
5c0d798ef4 keep up with github-actions changes 2020-10-26 23:24:30 +01:00
Ailin Nemui
11b9cbdf35 fix clang-format-xs option parser by using getopt 2020-10-26 17:00:58 +01:00
vague666
8f4f0be6d4 Add prio check to hilight_nick_cache also 2020-10-26 11:01:03 +01:00
vague666
4fb10322d1 Optimize execution 2020-10-26 10:57:05 +01:00
vague666
eb4174ee1e Make hilight priority work 2020-10-23 21:49:09 +02:00
ailin-nemui
17c6c22c89
Merge pull request #1224 from ailin-nemui/meson-capsicum
Fix meson capsicum
2020-09-26 16:51:26 +02:00
ailin-nemui
447e565309 Fix meson capsicum
Fixes #1223
2020-09-26 16:40:18 +02:00
ailin-nemui
561619f23c
Merge pull request #1221 from nachanon/bug1220
Decolor the vertical window split bar in stock `colorless` theme
2020-09-11 14:15:41 +02:00
Nutchanon Wetchasit
a88806640b Make colorless.theme de-color vertical window borders
Fixes #1220.
2020-09-08 17:59:24 +07:00
ailin-nemui
300cd14a70
Merge pull request #1214 from irssi/vague666-update-help-1
Update ignore help
2020-07-30 19:09:28 +02:00
ailin-nemui
dfba73225d
Merge pull request #1213 from irssi/vague666-update-help
Update help with HIDDEN level
2020-07-30 09:04:03 +02:00
Jari Matilainen
ec2f269e98
Update ignore.in 2020-07-28 23:48:52 +02:00
Jari Matilainen
556cb25239
Update ignore.in 2020-07-27 17:37:01 +02:00
Jari Matilainen
fcf2919348
Update help with HIDDEN level 2020-07-27 16:14:44 +02:00
ailin-nemui
f8052b7f57
Merge pull request #1209 from ailin-nemui/perl_line_signal_arg
fix missing wrapping of line in signals
2020-07-26 10:47:13 +02:00
ailin-nemui
cd10745711
Merge pull request #1211 from ailin-nemui/disco_lastmsg
fix crash when server got disconnected/reconnected before it was properly connected
2020-07-26 10:43:51 +02:00
ailin-nemui
79c32cefe7
Merge pull request #1212 from ailin-nemui/master
update github actions/checkout to new branch
2020-07-23 12:15:05 +02:00
ailin-nemui
f4f2350d3c update github actions/checkout to new branch 2020-07-23 12:05:19 +02:00