Skip to content

Commit

Permalink
Open app manually during installer to work around Catalina bug
Browse files Browse the repository at this point in the history
  • Loading branch information
knrafto committed May 30, 2020
1 parent 1894753 commit 8083aca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions InstallerActivatePane/ActivatePane.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ static void registerInputMethod() {
CFURLRef url = CFURLCreateFromFileSystemRepresentation(NULL, (const UInt8 *) kInstallLocation, strlen(kInstallLocation), NO);
if (url) {
TISRegisterInputSource(url);
// macOS Catalina seems to have a bug where registering an input source in this way won't
// start it, leaving it broken until the user reboots. Starting it ourselves seems to fix
// this though.
[[NSWorkspace sharedWorkspace] openURL:(__bridge NSURL*) url];
NSLog(@"Registered input source from %s", kInstallLocation);
}
}
Expand Down

0 comments on commit 8083aca

Please sign in to comment.