Skip to content

Commit

Permalink
Merge pull request #114 from mattandersen/Issue113
Browse files Browse the repository at this point in the history
Fix Issue with Replacing Config File Symlinks
  • Loading branch information
daf authored Feb 28, 2018
2 parents 592c9cc + 79158b4 commit 98153b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,10 @@ bool Config::save_cfg()

kf.set_string_list("nitrogen", "dirs", m_vec_dirs);

if (g_file_set_contents(cfgfile.c_str(), kf.to_data().c_str(), -1, NULL) == FALSE)
return false;
Glib::ustring outp = kf.to_data();
std::ofstream outf(cfgfile.c_str());
outf << outp;
outf.close();

return true;
}
Expand Down

0 comments on commit 98153b5

Please sign in to comment.