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.
This commit is contained in:
Mathias Gumz 2010-09-21 00:08:16 +02:00
parent 78b09ee932
commit 650b6f842b

View file

@ -29,7 +29,6 @@
#include "defaults.hh" #include "defaults.hh"
#include "Debug.hh" #include "Debug.hh"
#include "FbCommands.hh"
#include "FbTk/Theme.hh" #include "FbTk/Theme.hh"
#include "FbTk/I18n.hh" #include "FbTk/I18n.hh"
@ -395,8 +394,7 @@ void updateConfigFilesIfNeeded(const std::string& rc_file) {
string commandargs = realProgramName("fluxbox-update_configs"); string commandargs = realProgramName("fluxbox-update_configs");
commandargs += " -rc " + rc_file; commandargs += " -rc " + rc_file;
FbCommands::ExecuteCmd fbuc(commandargs, 0); system(commandargs.c_str());
fbuc.execute();
} }
} }