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
This commit is contained in:
Robbert van der Helm
2021-10-16 02:04:31 +02:00
parent e3f0926aef
commit 93ab5126b2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 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 `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 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. directory for yabridge to store its sockets and other temporary files in.
## Performance tuning ## Performance tuning
+1 -1
View File
@@ -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 * other temporary files here instead of in `$XDG_RUNTIME_DIR` or `/tmp`. This
* is only relevant when using some namespacing setup for sandboxing. * 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() { fs::path get_temporary_directory() {
bp::environment env = boost::this_process::environment(); bp::environment env = boost::this_process::environment();