all repos — fluxbox @ d8cd6a928b76dbe63afa82327c51715cb1a1bdc8

custom fork of the fluxbox windowmanager

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
commit

d8cd6a928b76dbe63afa82327c51715cb1a1bdc8

parent

637381ddaa49dbcb0f404e019e6cb7cadb6c18cf

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/FbTk/Theme.ccsrc/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");