summaryrefslogtreecommitdiffstats
path: root/editors/fine/files/patch-ab
blob: 35c27892fd39a4ab224a603eb91a4bbded923313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- fine.C.orig	Fri Oct 29 04:02:09 1999
+++ fine.C	Fri Nov 26 13:12:09 1999
@@ -227,7 +227,7 @@
 
   if (sc == NULL)
   { sc = new QBinaryTree<Configuration>(shortcut);
-    sprintf(s,"%s/.fine/.editor",getenv("HOME"));
+    sprintf(s,"%s/editor",FINEDIR);
     f = fopen(s,"rt");
     if (f != NULL) 
     { while (!feof(f))
@@ -236,7 +236,7 @@
          }
        fclose(f);
        } else QMessageBox::warning(ed,"Couldn't find main configuration file",
-    "Couldn't find .editor file in your .fine directory!\nTry to type: make install in the FINE distribution directory.");
+    "Couldn't find editor file in your .fine directory!\nTry to type: make install in the FINE distribution directory.");
     }
 
   sysmenu = new QMenuBar(this,"Editor System Main Menu");
@@ -430,7 +430,7 @@
   if (ptrsc != NULL)
   {  sh = ptrsc->Element();
       s = new char[strlen(getenv("HOME"))+strlen(sh.filename)+200];
-      sprintf(s,"%s/.fine/%s",getenv("HOME"),sh.filename);
+      sprintf(s,"%s/%s",FINEDIR,sh.filename);
       w->editor()->readConfig(s);
       delete [] s;
       }
@@ -470,7 +470,7 @@
         printf("\nTemplate file:%s, Compiler:%s, Previewer:%s",defsc.filename,
           (defsc.compiler != NULL? defsc.compiler:"(null)"),
 	     (defsc.previewer != NULL? defsc.previewer:"(null)"));
-        sprintf(s,"%s/.fine/%s",getenv("HOME"),defsc.filename);
+        sprintf(s,"%s/%s",FINEDIR,defsc.filename);
         ed->readConfig(s);
         ed->repaint();
         fflush(stdout);
@@ -517,14 +517,14 @@
  { if (ptrsc != NULL) Delete(sc,ptrsc->Element());
     sc->Insert(*scw);
     ptrsc = sc->Locate(*scw);
-    sprintf(fns,"%s/.fine/.editor",getenv("HOME"));
+    sprintf(fns,"%s/editor",FINEDIR);
     f = fopen(fns,"wt");
     fprintf(f,"# This is file used by FINE editor\n"); 
     fprintf(f,"# It contains information about all template files used by FINE\n");
     saveConfigTree(f,sc->Left());
     saveConfigTree(f,sc->Right());
     fclose(f);
-    sprintf(fns,"%s/.fine/%s",getenv("HOME"),scw->filename);
+    sprintf(fns,"%s/%s",FINEDIR,scw->filename);
     f = fopen(fns,"wt");
     fprintf(f,"# This is %s template file\n",scw->name);
     fprintf(f,"\n# screen settings\n");
OpenPOWER on IntegriCloud