Skip to content

Commit

Permalink
Use standardized userspace reboot method
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Feb 19, 2024
1 parent 7f44938 commit 0a498dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Application/Dopamine/Jailbreak/DOJailbreaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ - (void)runWithError:(NSError **)errOut didRemoveJailbreak:(BOOL*)didRemove show
- (void)finalize
{
[[DOUIManager sharedInstance] sendLog:DOLocalizedString(@"Rebooting Userspace") debug:NO];
exec_cmd_trusted(JBRootPath("/usr/bin/launchctl"), "reboot", "userspace", NULL);
[[DOEnvironmentManager sharedManager] rebootUserspace];
}

@end

0 comments on commit 0a498dc

Please sign in to comment.