]> git.pld-linux.org Git - packages/iok.git/blob - iok-fix-non-standard-keymap-path.patch
- fix adapter failure
[packages/iok.git] / iok-fix-non-standard-keymap-path.patch
1 Index: src/interface.c
2 ===================================================================
3 --- src/interface.c     (revision 171)
4 +++ src/interface.c     (working copy)
5 @@ -1395,7 +1395,7 @@
6          {
7              home_dir=getenv("HOME");
8              strcpy(hfile_path,home_dir);
9 -            strcat(hfile_path,"/.m17n/");
10 +            strcat(hfile_path,"/.m17n.d/");
11              strncat(hfile_path,mfile,strlen(mfile));
12              strcat(hfile_path,".mim");
13  
14 @@ -1791,7 +1791,7 @@
15      cnt=0;
16      home_dir=getenv("HOME");
17      strcpy(custom_dir_path,home_dir);
18 -    strcat(custom_dir_path,"/.m17n/");
19 +    strcat(custom_dir_path,"/.m17n.d/");
20  
21      n = scandir(custom_dir_path, &namelist, 0, alphasort);
22      if (n < 0)
23 @@ -2736,7 +2736,7 @@
24      lc=get_iso_code(current_mim);
25      sprintf(imname,"(input-method %s %s-inscript)\n\n",lc,filenameprefix);
26      strcpy(hdirpath,home_dir);
27 -    strcat(hdirpath,"/.m17n/");
28 +    strcat(hdirpath,"/.m17n.d/");
29  
30      if ( stat (hdirpath , &buf ) != 0 )
31      {
32 @@ -2747,7 +2747,7 @@
33  
34      }
35  
36 -    sprintf(nfilepath,"%s/.m17n/%s-%s-inscript.mim",home_dir,lc,filenameprefix);
37 +    sprintf(nfilepath,"%s/.m17n.d/%s-%s-inscript.mim",home_dir,lc,filenameprefix);
38      nfilepath[strlen(nfilepath)]='\0';
39      fpm = fopen(nfilepath, "w+");
40  
41 @@ -2904,7 +2904,7 @@
42  
43      home_dir=getenv("HOME");
44      strcpy(sdirpath,home_dir);
45 -    strcat(sdirpath,"/.m17n/");
46 +    strcat(sdirpath,"/.m17n.d/");
47  
48      if ( stat (sdirpath , &buf ) != 0 )
49      {
This page took 0.108911 seconds and 3 git commands to generate.