Skip to content

Commit b8f5ea0

Browse files
committed
Revert "Use isEqualToString when comparing paths of executables"
This reverts commit 5ee8719.
1 parent 29165bb commit b8f5ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PFMoveApplication.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static BOOL IsApplicationAtPathRunning(NSString *path) {
270270
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5) {
271271
for (NSRunningApplication *runningApplication in [[NSWorkspace sharedWorkspace] runningApplications]) {
272272
NSString *executablePath = [[runningApplication executableURL] path];
273-
if ([executablePath isEqualToString:path]) {
273+
if ([executablePath hasPrefix:path]) {
274274
return YES;
275275
}
276276
}

0 commit comments

Comments
 (0)