diff --git a/src/Tweak.xmi b/src/Tweak.xmi index 6fd3bfd..f9d3bea 100755 --- a/src/Tweak.xmi +++ b/src/Tweak.xmi @@ -96,6 +96,11 @@ static void traceURISchemes() { // Only hook Apps the user has selected in Introspy's settings panel NSString *appId = [[NSBundle mainBundle] bundleIdentifier]; + if (appId == nil) { + appId = [[NSProcessInfo processInfo] processName]; + NSLog(@"Introspy - Process has no bundle ID, use process name instead: %@", appId); + } + // Load Introspy preferences NSMutableDictionary *preferences = [[NSMutableDictionary alloc] initWithContentsOfFile:preferenceFilePath]; id shouldHook = [preferences objectForKey:appId]; diff --git a/src/introspy.plist b/src/introspy.plist new file mode 100644 index 0000000..d6b46f1 --- /dev/null +++ b/src/introspy.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.apple.Foundation" ); }; }