From 650b6f842ba5e996e1159ca78b9bafea9ab58b3c Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Tue, 21 Sep 2010 00:08:16 +0200 Subject: 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. --- src/main.cc | 4 +--- 1 file changed, 1 insertion(+), 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 @@ #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()); } } -- cgit v0.11.2