From c603c21b86f4273097cafc2814884e0f528dabe2 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Tue, 8 Feb 2011 22:40:55 +0000 Subject: [PATCH] Print a message to the user and exit(1) if HOME is not set in the users environment. Originally committed to SVN as r5324. --- aegisub/libaegisub/unix/path.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/libaegisub/unix/path.cpp b/aegisub/libaegisub/unix/path.cpp index f863717ea..c402bd039 100644 --- a/aegisub/libaegisub/unix/path.cpp +++ b/aegisub/libaegisub/unix/path.cpp @@ -38,7 +38,8 @@ const std::string home() { char *ehome; ehome = getenv("HOME"); if (ehome == NULL) { - //XXX: explode here. + printf("The HOME environment variable must be set\n"); + exit(1); } std::string home(ehome); free(ehome);