$OpenBSD: patch-src_CGeneralConfig_cpp,v 1.1.1.1 2002/03/19 13:58:12 wilfried Exp $
--- src/CGeneralConfig.cpp.orig	Fri Feb 22 07:45:58 2002
+++ src/CGeneralConfig.cpp	Mon Mar 11 15:41:06 2002
@@ -772,15 +772,15 @@ void CGeneralConfig::Configure(bool star
       bool err = cfg->prepare();
 
       err &= cfg->writeEntry("MDI", booltostr(IS_MDI));
-      err &= cfg->writeEntry("Translations Path", mydir + "translations/");
+      err &= cfg->writeEntry("Translations Path", LOCALBASE "/share/MyCC/" "translations/");
       err &= cfg->writeEntry("Language", "English");
       err &= cfg->writeEntry("History Size", 200);
       err &= cfg->writeEntry("Save Workspace", "true");
       err &= cfg->writeEntry("Confirm Critical", "true");
 
-      err &= cfg->writeEntry("Syntax File", mydir + "syntax.txt");
-      err &= cfg->writeEntry("Error Sound", mydir + "error.wav");
-      err &= cfg->writeEntry("Warning Sound", mydir + "warning.wav");
+      err &= cfg->writeEntry("Syntax File", LOCALBASE "/share/MyCC/" "syntax.txt");
+      err &= cfg->writeEntry("Error Sound", LOCALBASE "/share/MyCC/" "error.wav");
+      err &= cfg->writeEntry("Warning Sound", LOCALBASE "/share/MyCC/" "warning.wav");
 
       err &= cfg->writeEntry("Completion", "true");
       err &= cfg->writeEntry("Syntax Highlighting", "true");
@@ -832,7 +832,7 @@ void CGeneralConfig::Configure(bool star
   cfg->prepare();
   if (startupSpecific)
     g_isMDI = strtobool(cfg->readStringEntry("MDI", "false"));
-  *g_TranslationsPath = cfg->readStringEntry("Translations Path", mydir + "translations/");
+  *g_TranslationsPath = cfg->readStringEntry("Translations Path", LOCALBASE "/share/MyCC/" "translations/");
   *g_CurrentLanguage = cfg->readStringEntry("Language File", "English");
   g_saveWorkspace = strtobool(cfg->readStringEntry("Save Workspace", "true"));
   g_confirmCritical = strtobool(cfg->readStringEntry("Confirm Critical", "true"));
@@ -842,9 +842,9 @@ void CGeneralConfig::Configure(bool star
   qApp->setFont((font), true);
   g_printerFont.fromString(cfg->readStringEntry("Printer Font", QFont("Times", 10).toString()));  
   *g_CurrentStyle = cfg->readStringEntry("Style", "Windows");
-  *g_SyntaxFile = cfg->readStringEntry("Syntax File", mydir + "syntax.txt");
-  g_errorSoundFile = cfg->readStringEntry("Error Sound", mydir + "error.wav");
-  g_warningSoundFile = cfg->readStringEntry("Warning Sound", mydir + "warning.wav");
+  *g_SyntaxFile = cfg->readStringEntry("Syntax File", LOCALBASE "/share/MyCC/" "syntax.txt");
+  g_errorSoundFile = cfg->readStringEntry("Error Sound", LOCALBASE "/share/MyCC/" "error.wav");
+  g_warningSoundFile = cfg->readStringEntry("Warning Sound", LOCALBASE "/share/MyCC/" "warning.wav");
   g_informationSoundFile = cfg->readStringEntry("Information Sound", QString::null);
   g_completion = strtobool(cfg->readStringEntry("Completion", "true"));
   g_syntaxHighlight = strtobool(cfg->readStringEntry("Syntax Highlighting", "true"));
