]> Dogcows Code - chaz/openbox/commitdiff
removed the code to make the .blackboxrc symlink to openbox's rc file (it cored anyways)
authorDana Jansens <danakj@orodu.net>
Tue, 16 Apr 2002 05:55:10 +0000 (05:55 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 16 Apr 2002 05:55:10 +0000 (05:55 +0000)
src/openbox.cc
src/openbox.h

index 8e01a466590194a6b11f7aa6527078be460c5a1e..b3678664dfca630110fa9bacc49c42a82863846e 100644 (file)
@@ -175,7 +175,6 @@ Openbox::Openbox(int m_argc, char **m_argv, char *dpy_name, char *rc)
   } else {
     rc_file = bstrdup(rc);
   }
-  symlink_rc(rc_file);
   config.setFile(rc_file);
 
   no_focus = False;
@@ -1642,15 +1641,3 @@ void Openbox::setFocusedWindow(OpenboxWindow *win) {
   if (old_screen && old_screen != screen)
     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");
-  }
-}
index c51ffad74c9fa553e81f096d8f04f033f5c2907d..3e3d1ef2e9e46c886e68fe20db0795e856fff0d9 100644 (file)
@@ -122,7 +122,6 @@ protected:
   void load_rc(void);
   void save_rc(void);
   void reload_rc(void);
-  void symlink_rc(const char *) const;
   void real_rereadMenu(void);
   void real_reconfigure(void);
 
This page took 0.024617 seconds and 4 git commands to generate.