From 93ab5126b261d4a375827a74aafbdd346d1ac141 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 16 Oct 2021 02:04:31 +0200 Subject: [PATCH] Rename YABRIDGE_TEMP_PATH to YABRIDGE_TEMP_DIR I liked the `_PATH` version better initially, but the `_DIR` verison has a better ring to it and it's more consistent with `$XDG_RUNTIME_DIR`. #139 --- README.md | 2 +- src/common/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 499b1bca..a5fd4d7b 100644 --- a/README.md +++ b/README.md @@ -669,7 +669,7 @@ the yabridge [Discord](https://discord.gg/pyNeweqadf). namespace while the host is not sandboxed, then you'll have to use the `YABRIDGE_NO_WATCHDOG` environment variable to disable the watchdog timer. If you know what this means then you probably know what you're doing. In that - case, you may also want to use `YABRIDGE_TEMP_PATH` to choose a different + case, you may also want to use `YABRIDGE_TEMP_DIR` to choose a different directory for yabridge to store its sockets and other temporary files in. ## Performance tuning diff --git a/src/common/utils.cpp b/src/common/utils.cpp index 37e937ff..9266eb31 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -37,7 +37,7 @@ constexpr char disable_watchdog_timer_env_var[] = "YABRIDGE_NO_WATCHDOG"; * other temporary files here instead of in `$XDG_RUNTIME_DIR` or `/tmp`. This * is only relevant when using some namespacing setup for sandboxing. */ -constexpr char temp_dir_override_env_var[] = "YABRIDGE_TEMP_PATH"; +constexpr char temp_dir_override_env_var[] = "YABRIDGE_TEMP_DIR"; fs::path get_temporary_directory() { bp::environment env = boost::this_process::environment();