-void init(int /*argc*/, char * argv[])
-{
- static bool initialized = false;
- if (initialized)
- return;
- initialized = true;
-
- string tmp = argv[0];
- binname_ = OnlyFilename(tmp);
- tmp = ExpandPath(tmp); // This expands ./ and ~/
- if (!is_absolute_path(tmp)) {
- string binsearchpath = GetEnvPath("PATH");
- // This will make "src/lyx" work always :-)
- binsearchpath += ";.";
- tmp = FileOpenSearch(binsearchpath, tmp);
- }
-
- tmp = MakeAbsPath(OnlyPath(tmp));
-
- // In case we are running in place and compiled with shared libraries
- if (suffixIs(tmp, "/.libs/"))
- tmp.erase(tmp.length() - 6, string::npos);
- binpath_ = tmp;
-
- tmpdir_ = "/tmp";
- homepath_ = GetEnvPath("HOME");
- nulldev_ = "/dev/null";
-}
-
-
-void warn(string const & /*mesg*/)
-{
- return;
-}