Fix so that Let's move doesn't use ~/Applications

This commit is contained in:
Tobias Hieta 2016-12-07 16:01:02 +01:00
parent 22a7c5cc15
commit f157ded1f8

View File

@ -215,6 +215,7 @@ static NSString *PreferredInstallLocation(BOOL *isUserDirectory) {
// Assume that if the user has a ~/Applications folder, they'd prefer their
// applications to go there.
#if 0
NSFileManager *fm = [NSFileManager defaultManager];
NSArray *userApplicationsDirs = NSSearchPathForDirectoriesInDomains(NSApplicationDirectory, NSUserDomainMask, YES);
@ -236,6 +237,7 @@ static NSString *PreferredInstallLocation(BOOL *isUserDirectory) {
}
}
}
#endif
// No user Applications directory in use. Return the machine local Applications directory
if (isUserDirectory) *isUserDirectory = NO;