aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-03-24 02:40:09 (GMT)
committersimonb <simonb>2006-03-24 02:40:09 (GMT)
commit01612b22b643694497951f56e63bc12826525912 (patch)
tree66846ce31b6caf21306d906cf9fee52dd8a0aba1 /src/Remember.cc
parent1e8f74520c29d7d5cae33b568107e395cb664439 (diff)
downloadfluxbox_pavel-01612b22b643694497951f56e63bc12826525912.zip
fluxbox_pavel-01612b22b643694497951f56e63bc12826525912.tar.bz2
save apps file using the user's configured option rather than hardcoded...
Diffstat (limited to 'src/Remember.cc')
-rw-r--r--src/Remember.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Remember.cc b/src/Remember.cc
index 07487fb..c134741 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -543,11 +543,12 @@ void Remember::load() {
543} 543}
544 544
545void Remember::save() { 545void Remember::save() {
546
547 string apps_string = FbTk::StringUtil::expandFilename(Fluxbox::instance()->getAppsFilename());
548
546#ifdef DEBUG 549#ifdef DEBUG
547 cerr<<__FILE__<<"("<<__FUNCTION__<<"): Saving apps file..."<<endl; 550 cerr<<__FILE__<<"("<<__FUNCTION__<<"): Saving apps file ["<<apps_string<<"]"<<endl;
548#endif // DEBUG 551#endif // DEBUG
549 string apps_string;
550 Fluxbox::instance()->getDefaultDataFilename("apps", apps_string);
551 ofstream apps_file(apps_string.c_str()); 552 ofstream apps_file(apps_string.c_str());
552 553
553 // first of all we output all the startup commands 554 // first of all we output all the startup commands