Skip to content

Commit

Permalink
koekeishiya#589 add some info prints to osax loader
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya authored and unrevre committed Sep 23, 2020
1 parent f289e37 commit 822bfda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/osax/loader.m
Expand Up @@ -9,8 +9,13 @@ OSErr yabai_osax_load(const AppleEvent *event, AppleEvent *reply, long context)

OSErr result = OSAX_PAYLOAD_SUCCESS;
NSBundle *loader_bundle = [NSBundle bundleWithIdentifier:@"com.koekeishiya.yabai-osax"];
NSLog(@"[yabai] loader_bundle: %@", loader_bundle);

NSString *payload_path = [loader_bundle pathForResource:@"payload" ofType:@"bundle"];
NSLog(@"[yabai] payload_path: %@", payload_path);

NSBundle *payload_bundle = [NSBundle bundleWithPath:payload_path];
NSLog(@"[yabai] payload_bundle: %@", payload_bundle);

if (!payload_bundle) {
NSLog(@"[yabai] could not locate payload!");
Expand All @@ -31,6 +36,7 @@ OSErr yabai_osax_load(const AppleEvent *event, AppleEvent *reply, long context)
}

_instance = [payload_bundle principalClass];
NSLog(@"[yabai] set class instance: %@", _instance);

end:
if (result == OSAX_PAYLOAD_SUCCESS) {
Expand Down

0 comments on commit 822bfda

Please sign in to comment.