From 18fdeff9f5c3447cb84b52955dbd5a8fad67ec30 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 16 Jun 2011 21:02:29 +0200 Subject: Another temporary commit - comment out automatic upgrading of init file as we don't have that yet and it was causing problems - rename default init file to ~/.fluxbox/init2 to reflect the change of syntax - comment out exception handling blocks in main(): it is easier to debug when the program terminates when an unhandled exception occurs --- src/main.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cc b/src/main.cc index 4723c09..6fabf6a 100644 --- a/src/main.cc +++ b/src/main.cc @@ -230,7 +230,7 @@ struct Options { env = getenv("HOME"); if (env) { rc_path.assign(std::string(env) + "/." + realProgramName("fluxbox")); - rc_file = rc_path + "/init"; + rc_file = rc_path + "/init2"; } } @@ -380,7 +380,7 @@ void setupConfigFiles(const std::string& dirname, const std::string& rc) { // configs might be out of date, so run fluxbox-update_configs // if necassary. void updateConfigFilesIfNeeded(const std::string& rc_file) { - +/* XXX const int CONFIG_VERSION = 13; // TODO: move this to 'defaults.hh' or 'config.h' FbTk::ResourceManager r_mgr("session", "Session", rc_file.c_str(), false); @@ -410,7 +410,7 @@ void updateConfigFilesIfNeeded(const std::string& rc_file) { << commandargs << "' failed." << endl; } - } + }*/ } #include "WinButton.hh" @@ -469,7 +469,7 @@ int main(int argc, char **argv) { updateConfigFilesIfNeeded(opts.rc_file); auto_ptr fluxbox; - try { +// try { fluxbox.reset(new Fluxbox(argc, argv, opts.session_display, @@ -480,7 +480,7 @@ int main(int argc, char **argv) { exitcode = EXIT_SUCCESS; - } catch (out_of_range &oor) { + /* } catch (out_of_range &oor) { cerr <<"Fluxbox: " << _FB_CONSOLETEXT(main, ErrorOutOfRange, "Out of range", "Error message") << ": " @@ -514,7 +514,7 @@ int main(int argc, char **argv) { << _FB_CONSOLETEXT(main, ErrorUnknown, "Unknown error", "Error message") << "." << endl; abort(); - } + }*/ bool restarting = false; string restart_argument; -- cgit v0.11.2