]> git.lyx.org Git - lyx.git/blobdiff - src/main.C
fix typo that put too many include paths for most people
[lyx.git] / src / main.C
index 22e56f1708721ad49aed69b2222e170398a31a57..cd9680818c2b0ebd3d787b32c59af8034ea33163 100644 (file)
@@ -1,30 +1,27 @@
 /* This file is part of
- * ====================================================== 
- * 
+ * ======================================================
+ *
  *           LyX, The Document Processor
- *      
+ *
  *         Copyright 1995 Matthias Ettrich
- *          Copyright 1995-2000 The LyX Team.
+ *          Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
 #include <config.h>
-#include <iostream>
 
 #include "lyx_main.h"
 #include "gettext.h"
 #include "LString.h"
 #include "support/filetools.h"
+#include "support/os.h"
 #include "frontends/GUIRunTime.h"
 
-using std::cerr;
-using std::endl;
-
-GUIRunTime guiruntime;
 
 int main(int argc, char * argv[])
 {
-       int val = guiruntime.initApplication(argc, argv);
+       os::init(&argc, &argv);
+       int const val = GUIRunTime::initApplication(argc, argv);
        if (val)
                return val;
 
@@ -33,14 +30,10 @@ int main(int argc, char * argv[])
        string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
        if (lyx_localedir.empty())
                lyx_localedir = LOCALEDIR;
-       
+
        // initialize for internationalized version *EK*
        locale_init();
-       gettext_init();
-
-#ifdef __EMX__
-       _wildcard(&argc, &argv);
-#endif
+       gettext_init(lyx_localedir);
 
        LyX lyx(&argc, argv);
        return 0; // SUCCESS