Bug 692988 - Give Flash a valid application directory

This commit is contained in:
James Willcox
2011-11-14 19:47:38 -05:00
parent 2baeda3418
commit 2e28721afb
2 changed files with 11 additions and 2 deletions

View File

@@ -364,6 +364,9 @@ public class GeckoAppShell
File cacheFile = getCacheDir();
GeckoAppShell.putenv("CACHE_PATH=" + cacheFile.getPath());
File pluginDataDir = GeckoApp.mAppContext.getDir("plugins", 0);
GeckoAppShell.putenv("ANDROID_PLUGIN_DATADIR=" + pluginDataDir.getPath());
// gingerbread introduces File.getUsableSpace(). We should use that.
long freeSpace = getFreeSpace();
try {