You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 19, 2018. It is now read-only.
Relaunching should use some sort of callback mechanism or something so that client code can (for example) ask the user if they want to relaunch now or later (for those who care).
The text was updated successfully, but these errors were encountered:
If it's useful to you, the API can be enabled with:
// This code blocks, so get it to a background queue.
dispatch_async(dispatch_get_global_queue(0, 0), ^{
// Programmatic enabling of support for assistive devices via https://github.com/mayoff/keyscope
NSAppleScript *script = [[NSAppleScript alloc] initWithSource:@"tell app \"System Events\"\n\tset UI elements enabled to true\n\tget UI elements enabled\nend"];
NSDictionary *error;
NSAppleEventDescriptor *aed = [script executeAndReturnError:&error];
if (!aed) {
NSLog(@"Error enabling support for assistive devices: %@", error);
} else if ([aed descriptorType] != 'true') {
NSLog(@"Failed to enable support for assistive devices");
} else {
NSLog(@"Success!");
}
});
It's not the same as blessing the process, but it'll unblock things and there's no need to relaunch the application—everything starts working immediately.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Relaunching should use some sort of callback mechanism or something so that client code can (for example) ask the user if they want to relaunch now or later (for those who care).
The text was updated successfully, but these errors were encountered: