Mac installer: Minor optimization to changes to avoid Mojave security dialog

This commit is contained in:
Charlie Fenton 2018-10-10 05:54:21 -07:00
parent dcab93b69a
commit db8b50b5e8
1 changed files with 3 additions and 2 deletions

View File

@ -75,6 +75,9 @@ int main(int argc, const char * argv[]) {
fflush(stderr);
}
}
FixLaunchServicesDataBase();
for (i=1; i<argc; i+=2) {
if (strcmp(argv[i], "-d") == 0) {
// If this user was previously authorized to run the Manager, the Login Item
@ -107,8 +110,6 @@ int main(int argc, const char * argv[]) {
} // end if (strcmp(argv[i], "-a") == 0)
} // end for (i=i; i<argc; i+=2)
FixLaunchServicesDataBase();
pw = getpwuid(getuid());
snprintf(cmd, sizeof(cmd), "rm -f \"/Users/%s/Library/LaunchAgents/edu.berkeley.boinc.plist\"", pw->pw_name);