diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cc | 12 |
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. |
398 | void updateConfigFilesIfNeeded(const std::string& rc_file) { | 398 | void 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; |