removed the code to make the .blackboxrc symlink to openbox's rc file (it cored anyways)

This commit is contained in:
Dana Jansens 2002-04-16 05:55:10 +00:00
parent 897a9711d6
commit 67e5cb217e
2 changed files with 0 additions and 14 deletions

View file

@ -175,7 +175,6 @@ Openbox::Openbox(int m_argc, char **m_argv, char *dpy_name, char *rc)
} else { } else {
rc_file = bstrdup(rc); rc_file = bstrdup(rc);
} }
symlink_rc(rc_file);
config.setFile(rc_file); config.setFile(rc_file);
no_focus = False; no_focus = False;
@ -1642,15 +1641,3 @@ void Openbox::setFocusedWindow(OpenboxWindow *win) {
if (old_screen && old_screen != screen) if (old_screen && old_screen != screen)
old_screen->updateNetizenWindowFocus(); old_screen->updateNetizenWindowFocus();
} }
#warning TODO: wrap in appropriate #ifdefs.
void Openbox::symlink_rc(const char*rcfile)const{
char *homedir = getenv("HOME");
char *link_file = new char[strlen(homedir) + strlen("/.blackoxrc") + 1];
sprintf(link_file, "%s/.blackboxrc", homedir);
if(symlink(rcfile, link_file) == -1){
perror("Cannot create symlink");
}
}

View file

@ -122,7 +122,6 @@ protected:
void load_rc(void); void load_rc(void);
void save_rc(void); void save_rc(void);
void reload_rc(void); void reload_rc(void);
void symlink_rc(const char *) const;
void real_rereadMenu(void); void real_rereadMenu(void);
void real_reconfigure(void); void real_reconfigure(void);