From 6e07c330652adec3d06a860cac85c02f6d6e4100 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Mon, 18 Aug 2025 16:55:10 +0300 Subject: [PATCH] Honor the non-default data prefix when looking for the hicolor theme --- src/iconhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iconhandler.cpp b/src/iconhandler.cpp index 992c7ca..4f934ed 100644 --- a/src/iconhandler.cpp +++ b/src/iconhandler.cpp @@ -358,6 +358,8 @@ IconHandler::IconHandler( if (tmpThemes.find("hicolor") == tmpThemes.end()) { logInfo("No packaged hicolor icon theme found, using built-in one."); auto hicolorThemeIndex = Utils::getDataPath("hicolor-theme-index.theme"); + if (!fs::exists(hicolorThemeIndex) && !m_extraPrefix.empty()) + hicolorThemeIndex = m_extraPrefix + "/share/icons/hicolor/index.theme"; if (!fs::exists(hicolorThemeIndex)) { logError( "Hicolor icon theme index at '{}' was not found! We will not be able to handle icons in this theme.",