Fixed bug: use expanded style/theme filename 'filename' might contain a '~' which has to be expanded to work for regular system calls. We expanded 'filename' already but then did not use it. Fixes bug #3576586.
Mathias Gumz akira at fluxbox dot org
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/Theme.cc
→
src/FbTk/Theme.cc
@@ -115,12 +115,13 @@ }
bool ThemeManager::load(const string &filename, const string &overlay_filename, int screen_num) { + string location = FbTk::StringUtil::expandFilename(filename); StringUtil::removeTrailingWhitespace(location); StringUtil::removeFirstWhitespace(location); string prefix = ""; - if (FileUtil::isDirectory(filename.c_str())) { + if (FileUtil::isDirectory(location.c_str())) { prefix = location; location.append("/theme.cfg");