Skip to content
Snippets Groups Projects
Commit bbcee4bb authored by Michael Wu's avatar Michael Wu
Browse files

Bug 742107 - Use GRE_HOME or /system/b2g on Gonk, r=glandium

parent 15571100
No related branches found
No related tags found
No related merge requests found
......@@ -94,12 +94,17 @@ private:
return rv;
}
#elif defined(MOZ_WIDGET_ANDROID)
#elif defined(ANDROID)
static nsresult Get(const char *argv0, char aResult[MAXPATHLEN])
{
// On Android, we use the GRE_HOME variable that is set by the Java
// bootstrap code.
const char *greHome = getenv("GRE_HOME");
#if defined(MOZ_WIDGET_GONK)
if (!greHome)
greHome = "/system/b2g";
#endif
if (!greHome)
return NS_ERROR_FAILURE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment