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); }