Bug 994834 - Remove app package on uninstall. r=felipe

This commit is contained in:
Marco Castelluccio 2014-04-13 15:41:07 -04:00
parent dbc378e61e
commit 5f8d38d2b4

View File

@ -23,6 +23,7 @@
const char kAPP_INI[] = "application.ini";
const char kWEBAPP_INI[] = "webapp.ini";
const char kWEBAPP_JSON[] = "webapp.json";
const char kWEBAPP_PACKAGE[] = "application.zip";
const char kWEBAPPRT_INI[] = "webapprt.ini";
const char kWEBAPPRT_PATH[] = "webapprt";
const char kAPP_ENV_VAR[] = "XUL_APP_FILE";
@ -264,6 +265,10 @@ void RemoveApplication(nsINIParser& parser, const char* curExeDir, const char* p
snprintf(iconPath, MAXPATHLEN, "%s/icon.png", curExeDir);
unlink(iconPath);
char packagePath[MAXPATHLEN];
snprintf(packagePath, MAXPATHLEN, "%s/%s", curExeDir, kWEBAPP_PACKAGE);
unlink(packagePath);
char appName[MAXPATHLEN];
if (NS_FAILED(parser.GetString("Webapp", "Name", appName, MAXPATHLEN))) {
strcpy(appName, profile);