From 0431bbaa8b5df4dbde27f91808064d3887512faf Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 24 Oct 2023 11:51:39 +0800 Subject: [PATCH] cabana: set the COMMA_CACHE environment variable (#29849) * set COMMA_CACHE enviroment * use /tmp/comma_donwloand_cache --- tools/cabana/streams/replaystream.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/cabana/streams/replaystream.cc b/tools/cabana/streams/replaystream.cc index 2e580c0f0d..550e2be6a3 100644 --- a/tools/cabana/streams/replaystream.cc +++ b/tools/cabana/streams/replaystream.cc @@ -8,10 +8,13 @@ ReplayStream::ReplayStream(QObject *parent) : AbstractStream(parent) { unsetenv("ZMQ"); + setenv("COMMA_CACHE", "/tmp/comma_download_cache", 1); + // TODO: Remove when OpenpilotPrefix supports ZMQ #ifndef __APPLE__ op_prefix = std::make_unique(); #endif + QObject::connect(&settings, &Settings::changed, [this]() { if (replay) replay->setSegmentCacheLimit(settings.max_cached_minutes); });