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:
parent
78b09ee932
commit
650b6f842b
1 changed files with 1 additions and 3 deletions
|
@ -29,7 +29,6 @@
|
|||
#include "defaults.hh"
|
||||
|
||||
#include "Debug.hh"
|
||||
#include "FbCommands.hh"
|
||||
|
||||
#include "FbTk/Theme.hh"
|
||||
#include "FbTk/I18n.hh"
|
||||
|
@ -395,8 +394,7 @@ void updateConfigFilesIfNeeded(const std::string& rc_file) {
|
|||
string commandargs = realProgramName("fluxbox-update_configs");
|
||||
commandargs += " -rc " + rc_file;
|
||||
|
||||
FbCommands::ExecuteCmd fbuc(commandargs, 0);
|
||||
fbuc.execute();
|
||||
system(commandargs.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue