aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/RootTheme.cc12
1 files changed, 6 insertions, 6 deletions
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() {
208 filename = FbTk::StringUtil::expandFilename(filename); 208 filename = FbTk::StringUtil::expandFilename(filename);
209 if (FbTk::FileUtil::isRegularFile(filename.c_str())) { 209 if (FbTk::FileUtil::isRegularFile(filename.c_str())) {
210 // parse options 210 // parse options
211 std::string options; 211 std::string options = "-F ";
212 if (strstr(m_background->options().c_str(), "tiled") != 0) 212 if (strstr(m_background->options().c_str(), "tiled") != 0)
213 options += "-t "; 213 options = "-T ";
214 if (strstr(m_background->options().c_str(), "centered") != 0) 214 if (strstr(m_background->options().c_str(), "centered") != 0)
215 options += "-c "; 215 options = "-C ";
216 if (strstr(m_background->options().c_str(), "aspect") != 0) 216 if (strstr(m_background->options().c_str(), "aspect") != 0)
217 options += "-a "; 217 options = "-A ";
218 218
219 // compose wallpaper application "fbsetbg" with argumetns 219 // compose wallpaper application "fbsetbg" with argumetns
220 std::string commandargs = "fbsetbg " + options + " " + filename; 220 std::string commandargs = "fbsetbg " + options + filename;
221 221
222 // call command with options 222 // call command with options
223 FbCommands::ExecuteCmd exec(commandargs, screenNum()); 223 FbCommands::ExecuteCmd exec(commandargs, screenNum());
@@ -225,7 +225,7 @@ void RootTheme::reconfigTheme() {
225 225
226 } else if (FbTk::FileUtil::isDirectory(filename.c_str()) && 226 } else if (FbTk::FileUtil::isDirectory(filename.c_str()) &&
227 strstr(m_background->options().c_str(), "random") != 0) { 227 strstr(m_background->options().c_str(), "random") != 0) {
228 std::string commandargs = "fbsetbg -r " + filename; 228 std::string commandargs = "fbsetbg -R " + filename;
229 FbCommands::ExecuteCmd exec(commandargs, screenNum()); 229 FbCommands::ExecuteCmd exec(commandargs, screenNum());
230 exec.execute(); 230 exec.execute();
231 } else { 231 } else {