diff options
author | simonb <simonb> | 2006-03-24 02:40:09 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-03-24 02:40:09 (GMT) |
commit | 01612b22b643694497951f56e63bc12826525912 (patch) | |
tree | 66846ce31b6caf21306d906cf9fee52dd8a0aba1 /src | |
parent | 1e8f74520c29d7d5cae33b568107e395cb664439 (diff) | |
download | fluxbox_pavel-01612b22b643694497951f56e63bc12826525912.zip fluxbox_pavel-01612b22b643694497951f56e63bc12826525912.tar.bz2 |
save apps file using the user's configured option rather than hardcoded...
Diffstat (limited to 'src')
-rw-r--r-- | src/Remember.cc | 7 |
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 | ||
545 | void Remember::save() { | 545 | void 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 |