/[rdesktop]/sourceforge.net/trunk/rdesktop/xkeymap.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xkeymap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 959 by astrand, Wed Aug 3 08:25:32 2005 UTC revision 960 by astrand, Wed Aug 3 08:41:02 2005 UTC
# Line 184  xkeymap_open(const char *filename) Line 184  xkeymap_open(const char *filename)
184          char *home;          char *home;
185          FILE *fp;          FILE *fp;
186    
         /* Try KEYMAP_PATH */  
         path1 = pathjoin(KEYMAP_PATH, filename);  
         fp = fopen(path1, "r");  
         xfree(path1);  
         if (fp)  
                 return fp;  
   
187          /* Try ~/.rdesktop/keymaps */          /* Try ~/.rdesktop/keymaps */
188          home = getenv("HOME");          home = getenv("HOME");
189          if (home)          if (home)
# Line 204  xkeymap_open(const char *filename) Line 197  xkeymap_open(const char *filename)
197                          return fp;                          return fp;
198          }          }
199    
200            /* Try KEYMAP_PATH */
201            path1 = pathjoin(KEYMAP_PATH, filename);
202            fp = fopen(path1, "r");
203            xfree(path1);
204            if (fp)
205                    return fp;
206    
207          /* Try current directory, in case we are running from the source          /* Try current directory, in case we are running from the source
208             tree */             tree */
209          path1 = pathjoin("keymaps", filename);          path1 = pathjoin("keymaps", filename);

Legend:
Removed from v.959  
changed lines
  Added in v.960

  ViewVC Help
Powered by ViewVC 1.1.26