mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 02:33:12 +02:00
Add function "string_expand_home" in plugin API, fix bug with replacement of home in paths
This commit is contained in:
@@ -82,8 +82,7 @@ logger_get_file_path ()
|
||||
goto end;
|
||||
|
||||
/* replace "~" with user home */
|
||||
file_path = weechat_string_replace (weechat_config_string (logger_config_file_path),
|
||||
"~", getenv ("HOME"));
|
||||
file_path = weechat_string_expand_home (weechat_config_string (logger_config_file_path));
|
||||
if (!file_path)
|
||||
goto end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user