From 5503545d8f3228dee6db0c7a1d9de18c77a92ca4 Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 20 Jan 2007 19:32:53 +0000 Subject: use uppercase arguments to fbsetbg from styles --- ChangeLog | 2 ++ src/RootTheme.cc | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 278219f..1d51ace 100644 --- a/ChangeLog +++ b/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 diff --git a/src/RootTheme.cc b/src/RootTheme.cc index 98d9067..afe0ca0 100644 --- a/src/RootTheme.cc +++ b/src/RootTheme.cc @@ -208,16 +208,16 @@ void RootTheme::reconfigTheme() { 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 @@ void RootTheme::reconfigTheme() { } 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 { -- cgit v0.11.2