From db00adaf694c01888e914d66734e42d4d70b0688 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 13 Mar 2022 06:27:41 +0530 Subject: [PATCH] macOS: Use the POSIX user cache dir as the runtime dir It's path length is 49 chars which is still too long, but it is at least well defined. --- kitty/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/constants.py b/kitty/constants.py index 9d85984de..bafe10c25 100644 --- a/kitty/constants.py +++ b/kitty/constants.py @@ -142,7 +142,8 @@ def runtime_dir() -> str: if 'KITTY_RUNTIME_DIRECTORY' in os.environ: candidate = os.path.abspath(os.environ['KITTY_RUNTIME_DIRECTORY']) elif is_macos: - candidate = os.path.join(cache_dir(), 'run') + from .fast_data_types import user_cache_dir + candidate = user_cache_dir() elif 'XDG_RUNTIME_DIR' in os.environ: candidate = os.path.abspath(os.environ['XDG_RUNTIME_DIR']) else: