diff options
Diffstat (limited to 'util/fluxbox-update_configs.cc')
-rw-r--r-- | util/fluxbox-update_configs.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc index b93f344..164b073 100644 --- a/util/fluxbox-update_configs.cc +++ b/util/fluxbox-update_configs.cc | |||
@@ -55,7 +55,6 @@ using std::set; | |||
55 | using std::map; | 55 | using std::map; |
56 | using std::list; | 56 | using std::list; |
57 | using std::exit; | 57 | using std::exit; |
58 | using std::getenv; | ||
59 | 58 | ||
60 | string read_file(const string& filename); | 59 | string read_file(const string& filename); |
61 | void write_file(const string& filename, const string &contents); | 60 | void write_file(const string& filename, const string &contents); |
@@ -606,7 +605,7 @@ int main(int argc, char **argv) { | |||
606 | } | 605 | } |
607 | 606 | ||
608 | if (rc_filename.empty()) | 607 | if (rc_filename.empty()) |
609 | rc_filename = getenv("HOME") + string("/.fluxbox/init"); | 608 | rc_filename = FbTk::StringUtil::expandFilename("~/.fluxbox/init"); |
610 | 609 | ||
611 | FbTk::ResourceManager resource_manager(rc_filename.c_str(),false); | 610 | FbTk::ResourceManager resource_manager(rc_filename.c_str(),false); |
612 | if (!resource_manager.load(rc_filename.c_str())) { | 611 | if (!resource_manager.load(rc_filename.c_str())) { |