-Path get_sys_lib_dir()
-{
- const char *argv0 = Application::get_argv0();
- if(!argv0)
- throw logic_error("no startup command");
- return get_sys_lib_dir(argv0, Application::get_name());
-}
-
-void chdir(const Path &path)
-{
- if(::chdir(path.str().c_str())==-1)
- throw system_error("chdir");
-}
-