From 0f9640a5f33d4d0c76df75cb7a6cb07baac049f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 2 May 2021 11:56:25 +0200 Subject: core: split WeeChat home in 4 directories, use XDG directories by default (issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets --- tests/scripts/test-scripts.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/scripts') diff --git a/tests/scripts/test-scripts.cpp b/tests/scripts/test-scripts.cpp index 92aaca9fc..96d408c2f 100644 --- a/tests/scripts/test-scripts.cpp +++ b/tests/scripts/test-scripts.cpp @@ -160,8 +160,9 @@ TEST(Scripts, API) test_scripts_dir, DIR_SEPARATOR, "testapi.py"); - path_testapi_output_dir = string_eval_path_home ("%h/testapi", - NULL, NULL, NULL); + path_testapi_output_dir = string_eval_path_home ( + "${weechat_data_dir}/testapi", + NULL, NULL, NULL); CHECK(path_testapi_output_dir); api_tests_ok = 0; -- cgit v1.2.3