all repos — fluxbox @ af543ba9d3b7e8ccf48cd9f5668fef8b5118e7b4

custom fork of the fluxbox windowmanager

remove RC_PATH from remember.cc
rathnor rathnor
commit

af543ba9d3b7e8ccf48cd9f5668fef8b5118e7b4

parent

fc760d0b688ebd2d62cc7bd05df7f4a87ab15677

2 files changed, 9 insertions(+), 9 deletions(-)

jump to
M src/Remember.ccsrc/Remember.cc

@@ -21,7 +21,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Remember.cc,v 1.18 2003/05/26 11:27:31 rathnor Exp $ +// $Id: Remember.cc,v 1.19 2003/05/27 11:55:23 rathnor Exp $ #include "Remember.hh" #include "StringUtil.hh"

@@ -31,10 +31,6 @@ #include "WinClient.hh"

#include "FbMenu.hh" #include "MenuItem.hh" #include "App.hh" - -// TODO get rid of these -#define RC_PATH "fluxbox" -#define RC_INIT_FILE "init" #include <X11/Xlib.h>

@@ -301,7 +297,9 @@ }

void Remember::load() { - string apps_string = getenv("HOME")+string("/.")+RC_PATH+string("/")+"apps"; + string apps_string; + Fluxbox::instance()->getDefaultDataFilename("apps", apps_string); + #ifdef DEBUG cerr<<__FILE__<<"("<<__FUNCTION__<<"): Loading apps file ["<<apps_string<<"]"<<endl; #endif // DEBUG

@@ -356,7 +354,8 @@ void Remember::save() {

#ifdef DEBUG cerr<<__FILE__<<"("<<__FUNCTION__<<"): Saving apps file..."<<endl; #endif // DEBUG - string apps_string = getenv("HOME")+string("/.")+RC_PATH+string("/")+"apps"; + string apps_string; + Fluxbox::instance()->getDefaultDataFilename("apps", apps_string); ofstream apps_file(apps_string.c_str()); Apps::iterator it = apps.begin(); Apps::iterator it_end = apps.end();
M src/fluxbox.hhsrc/fluxbox.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.hh,v 1.60 2003/05/18 22:02:55 fluxgen Exp $ +// $Id: fluxbox.hh,v 1.61 2003/05/27 11:55:23 rathnor Exp $ #ifndef FLUXBOX_HH #define FLUXBOX_HH

@@ -191,6 +191,8 @@ /// @return whether the timestamps on the menu changed

bool menuTimestampsChanged() const; bool haveShape() const { return m_have_shape; } int shapeEventbase() const { return m_shape_eventbase; } + void getDefaultDataFilename(char *, std::string &); + private: struct cursor { Cursor session, move, ll_angle, lr_angle;

@@ -208,7 +210,6 @@ } resource;

std::string getRcFilename(); - void getDefaultDataFilename(char *, std::string &); void load_rc(); void reload_rc();