aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-16 19:02:29 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 09:57:19 (GMT)
commit232c54b051044f1602d3b0577e32d7d6e9974c3d (patch)
treeb26f79d031899b15ba12d9c936455e1aa1da1e72
parentd7d15fc64750bd92e278496092e323cff55e6a78 (diff)
downloadfluxbox_paul-232c54b051044f1602d3b0577e32d7d6e9974c3d.zip
fluxbox_paul-232c54b051044f1602d3b0577e32d7d6e9974c3d.tar.bz2
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
-rw-r--r--src/main.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cc b/src/main.cc
index 3d35044..befe1ba 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -231,7 +231,7 @@ struct Options {
231#endif 231#endif
232 if (env && strlen(env) > 0) { 232 if (env && strlen(env) > 0) {
233 rc_path.assign(std::string(env) + "/." + realProgramName("fluxbox")); 233 rc_path.assign(std::string(env) + "/." + realProgramName("fluxbox"));
234 rc_file = rc_path + "/init"; 234 rc_file = rc_path + "/init2";
235 } 235 }
236 } 236 }
237 237
@@ -396,7 +396,7 @@ void setupConfigFiles(const std::string& dirname, const std::string& rc) {
396// configs might be out of date, so run fluxbox-update_configs 396// configs might be out of date, so run fluxbox-update_configs
397// if necassary. 397// if necassary.
398void updateConfigFilesIfNeeded(const std::string& rc_file) { 398void updateConfigFilesIfNeeded(const std::string& rc_file) {
399 399/* XXX
400 const int CONFIG_VERSION = 13; // TODO: move this to 'defaults.hh' or 'config.h' 400 const int CONFIG_VERSION = 13; // TODO: move this to 'defaults.hh' or 'config.h'
401 401
402 FbTk::ResourceManager r_mgr("session", "Session", rc_file.c_str(), false); 402 FbTk::ResourceManager r_mgr("session", "Session", rc_file.c_str(), false);
@@ -429,7 +429,7 @@ void updateConfigFilesIfNeeded(const std::string& rc_file) {
429#ifdef HAVE_SYNC 429#ifdef HAVE_SYNC
430 sync(); 430 sync();
431#endif // HAVE_SYNC 431#endif // HAVE_SYNC
432 } 432 }*/
433} 433}
434 434
435#include "WinButton.hh" 435#include "WinButton.hh"
@@ -475,7 +475,7 @@ int main(int argc, char **argv) {
475 updateConfigFilesIfNeeded(opts.rc_file); 475 updateConfigFilesIfNeeded(opts.rc_file);
476 476
477 auto_ptr<Fluxbox> fluxbox; 477 auto_ptr<Fluxbox> fluxbox;
478 try { 478// try {
479 479
480 fluxbox.reset(new Fluxbox(argc, argv, 480 fluxbox.reset(new Fluxbox(argc, argv,
481 opts.session_display, 481 opts.session_display,
@@ -486,7 +486,7 @@ int main(int argc, char **argv) {
486 486
487 exitcode = EXIT_SUCCESS; 487 exitcode = EXIT_SUCCESS;
488 488
489 } catch (out_of_range &oor) { 489 /* } catch (out_of_range &oor) {
490 cerr <<"Fluxbox: " 490 cerr <<"Fluxbox: "
491 << _FB_CONSOLETEXT(main, ErrorOutOfRange, "Out of range", "Error message") 491 << _FB_CONSOLETEXT(main, ErrorOutOfRange, "Out of range", "Error message")
492 << ": " 492 << ": "
@@ -520,7 +520,7 @@ int main(int argc, char **argv) {
520 << _FB_CONSOLETEXT(main, ErrorUnknown, "Unknown error", "Error message") 520 << _FB_CONSOLETEXT(main, ErrorUnknown, "Unknown error", "Error message")
521 << "." << endl; 521 << "." << endl;
522 abort(); 522 abort();
523 } 523 }*/
524 524
525 bool restarting = false; 525 bool restarting = false;
526 string restart_argument; 526 string restart_argument;