-#include <cstdlib>
#include <msp/core/application.h>
+#include <msp/core/environ.h>
#include "dir.h"
using namespace std;
Path get_home_dir()
{
- const char *home = getenv("HOME");
- if(home)
+ string home = getenv("HOME");
+ if(!home.empty())
return home;
return ".";
}