]> git.lyx.org Git - lyx.git/blobdiff - src/main.C
Alfredo's second patch
[lyx.git] / src / main.C
index cd9680818c2b0ebd3d787b32c59af8034ea33163..26bbed47641188738b76e3ca2c55a95ac424811f 100644 (file)
@@ -1,40 +1,25 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file main.C
+ * Copyright 2002 the LyX Team
+ * Read the file COPYING
  *
- *           LyX, The Document Processor
- *
- *         Copyright 1995 Matthias Ettrich
- *          Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * \author Lars Gullik Bjønnes
+ * \author Jean Marc Lasgouttes
+ */
 
 #include <config.h>
 
 #include "lyx_main.h"
 #include "gettext.h"
-#include "LString.h"
-#include "support/filetools.h"
 #include "support/os.h"
-#include "frontends/GUIRunTime.h"
-
 
 int main(int argc, char * argv[])
 {
        os::init(&argc, &argv);
-       int const val = GUIRunTime::initApplication(argc, argv);
-       if (val)
-               return val;
-
-       // lyx_localedir is used by gettext_init() is we have
-       //   i18n support built-in
-       string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
-       if (lyx_localedir.empty())
-               lyx_localedir = LOCALEDIR;
 
        // initialize for internationalized version *EK*
        locale_init();
-       gettext_init(lyx_localedir);
 
-       LyX lyx(&argc, argv);
-       return 0; // SUCCESS
+       LyX lyx(argc, argv);
+       return 0;
 }