save apps file using the user's configured option rather than hardcoded...

This commit is contained in:
simonb 2006-03-24 02:40:09 +00:00
parent 1e8f74520c
commit 01612b22b6
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,8 @@
(Format: Year/Month/Day)
Changes for 0.9.16:
*06/03/24:
* Fixed apps filename on save (Thanks mal at komcept com)
Remember.cc
*06/03/23:
* Fixed duplicate ClickToFocus menu item (Thanks mal at komcept com)
* Fix some tab stacking alignment and rendering on tab resize (Simon)

View file

@ -543,11 +543,12 @@ void Remember::load() {
}
void Remember::save() {
string apps_string = FbTk::StringUtil::expandFilename(Fluxbox::instance()->getAppsFilename());
#ifdef DEBUG
cerr<<__FILE__<<"("<<__FUNCTION__<<"): Saving apps file..."<<endl;
cerr<<__FILE__<<"("<<__FUNCTION__<<"): Saving apps file ["<<apps_string<<"]"<<endl;
#endif // DEBUG
string apps_string;
Fluxbox::instance()->getDefaultDataFilename("apps", apps_string);
ofstream apps_file(apps_string.c_str());
// first of all we output all the startup commands