Use bundle ID for macOS cache directory path

This commit is contained in:
Bryan Lee
2024-12-30 14:13:22 +08:00
parent 67794d3f6f
commit 9f44ec7c21
2 changed files with 13 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ fn initThread(gpa: Allocator) !void {
// Determine the Sentry cache directory.
const cache_dir = if (builtin.os.tag == .macos)
try internal_os.macos.cacheDir(alloc, "ghostty/sentry")
try internal_os.macos.cacheDir(alloc, "sentry")
else
try internal_os.xdg.cache(alloc, .{ .subdir = "ghostty/sentry" });
sentry.c.sentry_options_set_database_path_n(