aboutsummaryrefslogtreecommitdiff
path: root/src/RootTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/RootTheme.cc')
-rw-r--r--src/RootTheme.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/RootTheme.cc b/src/RootTheme.cc
index 12c809e..19e8c8d 100644
--- a/src/RootTheme.cc
+++ b/src/RootTheme.cc
@@ -180,8 +180,6 @@ void RootTheme::reconfigTheme() {
180 options += "-t "; 180 options += "-t ";
181 if (strstr(m_background->options().c_str(), "centered") != 0) 181 if (strstr(m_background->options().c_str(), "centered") != 0)
182 options += "-c "; 182 options += "-c ";
183 if (strstr(m_background->options().c_str(), "random") != 0)
184 options += "-r ";
185 if (strstr(m_background->options().c_str(), "aspect") != 0) 183 if (strstr(m_background->options().c_str(), "aspect") != 0)
186 options += "-a "; 184 options += "-a ";
187 185
@@ -192,6 +190,11 @@ void RootTheme::reconfigTheme() {
192 FbCommands::ExecuteCmd exec(commandargs, screenNum()); 190 FbCommands::ExecuteCmd exec(commandargs, screenNum());
193 exec.execute(); 191 exec.execute();
194 192
193 } else if (FbTk::FileUtil::isDirectory(filename.c_str()) &&
194 strstr(m_background->options().c_str(), "random") != 0) {
195 std::string commandargs = "fbsetbg -r " + filename;
196 FbCommands::ExecuteCmd exec(commandargs, screenNum());
197 exec.execute();
195 } else { 198 } else {
196 // render normal texture with fbsetroot 199 // render normal texture with fbsetroot
197 200