mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 994834 - Remove app package on uninstall. r=felipe
This commit is contained in:
parent
dbc378e61e
commit
5f8d38d2b4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user