From 5bf6a412b0b03ecc77aac08ad09bd3f52967f017 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 6 Apr 2026 00:43:02 -0700 Subject: [PATCH] core: correctly construct runtime path when XDG_RUNTIME_DIR missing Fixes a typo of % as $, which broke string substitution. --- src/core/paths.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/paths.cpp b/src/core/paths.cpp index 6555e54..d361e3d 100644 --- a/src/core/paths.cpp +++ b/src/core/paths.cpp @@ -64,7 +64,7 @@ QDir* QsPaths::baseRunDir() { if (this->baseRunState == DirState::Unknown) { auto runtimeDir = qEnvironmentVariable("XDG_RUNTIME_DIR"); if (runtimeDir.isEmpty()) { - runtimeDir = QString("/run/user/$1").arg(getuid()); + runtimeDir = QString("/run/user/%1").arg(getuid()); qCInfo(logPaths) << "XDG_RUNTIME_DIR was not set, defaulting to" << runtimeDir; }