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.
Mathias Gumz akira at fluxbox dot org
1 files changed,
1 insertions(+),
3 deletions(-)
jump to
M
src/main.cc
→
src/main.cc
@@ -29,7 +29,6 @@ #include "version.h"
#include "defaults.hh" #include "Debug.hh" -#include "FbCommands.hh" #include "FbTk/Theme.hh" #include "FbTk/I18n.hh"@@ -395,8 +394,7 @@
string commandargs = realProgramName("fluxbox-update_configs"); commandargs += " -rc " + rc_file; - FbCommands::ExecuteCmd fbuc(commandargs, 0); - fbuc.execute(); + system(commandargs.c_str()); } }