-
-#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");
- }
-}