use uppercase arguments to fbsetbg from styles
markt markt
2 files changed,
8 insertions(+),
6 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,6 +1,8 @@
(Format: Year/Month/Day) Changes for 1.0rc3: *07/01/20: + * Make sure styles don't change the lastwallpaper in fbsetbg (Mark) + RootTheme.cc * Let styles override rootCommand in init file -- for the old behavior, add `background: none' to the overlay file (Mark) RootTheme.cc/hh Screen.cc
M
src/RootTheme.cc
→
src/RootTheme.cc
@@ -208,16 +208,16 @@ // command specified in the resources
filename = FbTk::StringUtil::expandFilename(filename); if (FbTk::FileUtil::isRegularFile(filename.c_str())) { // parse options - std::string options; + std::string options = "-F "; if (strstr(m_background->options().c_str(), "tiled") != 0) - options += "-t "; + options = "-T "; if (strstr(m_background->options().c_str(), "centered") != 0) - options += "-c "; + options = "-C "; if (strstr(m_background->options().c_str(), "aspect") != 0) - options += "-a "; + options = "-A "; // compose wallpaper application "fbsetbg" with argumetns - std::string commandargs = "fbsetbg " + options + " " + filename; + std::string commandargs = "fbsetbg " + options + filename; // call command with options FbCommands::ExecuteCmd exec(commandargs, screenNum());@@ -225,7 +225,7 @@ exec.execute();
} else if (FbTk::FileUtil::isDirectory(filename.c_str()) && strstr(m_background->options().c_str(), "random") != 0) { - std::string commandargs = "fbsetbg -r " + filename; + std::string commandargs = "fbsetbg -R " + filename; FbCommands::ExecuteCmd exec(commandargs, screenNum()); exec.execute(); } else {