aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-08-04 09:02:04 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-08-04 09:02:04 (GMT)
commitcf11e9c960636434f8b398f47b1e55d27ad18e4e (patch)
treed4df04e8b5a7aa26633f3a5474264931cccce23f /src/fluxbox.cc
parent707df7d81b6df25fa98f3a867485cb7bbbbf74b8 (diff)
downloadfluxbox_pavel-cf11e9c960636434f8b398f47b1e55d27ad18e4e.zip
fluxbox_pavel-cf11e9c960636434f8b398f47b1e55d27ad18e4e.tar.bz2
Move most of the resource loading code into ResourceManager_base
I mostly do this to avoid code duplication between fluxbox and fluxbox-update_configs.
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 1dc3105..c7f6ee2 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1151,7 +1151,13 @@ string Fluxbox::getDefaultDataFilename(const char *name) const {
1151/// loads resources 1151/// loads resources
1152void Fluxbox::load_rc() { 1152void Fluxbox::load_rc() {
1153 1153
1154 m_resourcemanager.load(getRcFilename(), DEFAULT_INITFILE); 1154 try {
1155 m_resourcemanager.load(getRcFilename(), DEFAULT_INITFILE);
1156 }
1157 catch(std::runtime_error &) {
1158 // This should only happen if system-wide init file is broken.
1159 // Not much we can do about that, so we just ignore it
1160 }
1155 1161
1156 if (m_rc_menufile->empty()) 1162 if (m_rc_menufile->empty())
1157 m_rc_menufile.setDefaultValue(); 1163 m_rc_menufile.setDefaultValue();