diff options
Diffstat (limited to 'util')
-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 a8052a2..8eff8e4 100644 --- a/util/fluxbox-update_configs.cc +++ b/util/fluxbox-update_configs.cc | |||
@@ -64,7 +64,6 @@ using std::set; | |||
64 | using std::map; | 64 | using std::map; |
65 | using std::list; | 65 | using std::list; |
66 | using std::exit; | 66 | using std::exit; |
67 | using std::getenv; | ||
68 | 67 | ||
69 | string read_file(const string& filename); | 68 | string read_file(const string& filename); |
70 | void write_file(const string& filename, const string &contents); | 69 | void write_file(const string& filename, const string &contents); |
@@ -615,7 +614,7 @@ int main(int argc, char **argv) { | |||
615 | } | 614 | } |
616 | 615 | ||
617 | if (rc_filename.empty()) | 616 | if (rc_filename.empty()) |
618 | rc_filename = getenv("HOME") + string("/.fluxbox/init"); | 617 | rc_filename = FbTk::StringUtil::expandFilename("~/.fluxbox/init"); |
619 | 618 | ||
620 | FbTk::ResourceManager resource_manager(rc_filename.c_str(),false); | 619 | FbTk::ResourceManager resource_manager(rc_filename.c_str(),false); |
621 | if (!resource_manager.load(rc_filename.c_str())) { | 620 | if (!resource_manager.load(rc_filename.c_str())) { |