From 63b522648ea52650937b62f748b65dfb8ba4562d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 9 Jun 2026 16:10:35 +1000 Subject: [PATCH] fix: expand tilde in lyrics path Fixes #1532 --- plugin/src/Caelestia/Services/lyrics.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/src/Caelestia/Services/lyrics.cpp b/plugin/src/Caelestia/Services/lyrics.cpp index cf266eb1..eb5a5be1 100644 --- a/plugin/src/Caelestia/Services/lyrics.cpp +++ b/plugin/src/Caelestia/Services/lyrics.cpp @@ -855,6 +855,11 @@ QString Lyrics::lyricsDir() const { if (dir.isEmpty()) { return {}; } + if (dir == u"~"_s) { + dir = QDir::homePath(); + } else if (dir.startsWith(u"~/"_s)) { + dir.replace(0, 1, QDir::homePath()); + } while (dir.endsWith(QLatin1Char('/')) && dir.size() > 1) { dir.chop(1); }