aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-20 22:08:16 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-20 22:08:16 (GMT)
commit650b6f842ba5e996e1159ca78b9bafea9ab58b3c (patch)
treee2b9a6d261048b368e34f0c46026f56318cfe015
parent78b09ee932c7b3d1d383c14c202b849f9814eba2 (diff)
downloadfluxbox_pavel-650b6f842ba5e996e1159ca78b9bafea9ab58b3c.zip
fluxbox_pavel-650b6f842ba5e996e1159ca78b9bafea9ab58b3c.tar.bz2
use 'system()' to run 'fluxbox-update_configs'
by using FbCommands::ExecureCmd() we run 'fluxbox-update_configs' in the bacground while booting a new fluxbox instance already. 'system()' waits until 'fluxbox-update_configs' is done and then gives the control back to fluxbox.
-rw-r--r--src/main.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.cc b/src/main.cc
index 6775b53..b678738 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -29,7 +29,6 @@
29#include "defaults.hh" 29#include "defaults.hh"
30 30
31#include "Debug.hh" 31#include "Debug.hh"
32#include "FbCommands.hh"
33 32
34#include "FbTk/Theme.hh" 33#include "FbTk/Theme.hh"
35#include "FbTk/I18n.hh" 34#include "FbTk/I18n.hh"
@@ -395,8 +394,7 @@ void updateConfigFilesIfNeeded(const std::string& rc_file) {
395 string commandargs = realProgramName("fluxbox-update_configs"); 394 string commandargs = realProgramName("fluxbox-update_configs");
396 commandargs += " -rc " + rc_file; 395 commandargs += " -rc " + rc_file;
397 396
398 FbCommands::ExecuteCmd fbuc(commandargs, 0); 397 system(commandargs.c_str());
399 fbuc.execute();
400 } 398 }
401} 399}
402 400