Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
fixed the respring for rootless
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra authored and Alexandra committed Apr 28, 2023
1 parent 7611049 commit 3cb4e11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions Preferences/Controllers/EnekoRootListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ - (void)promptToRespring {
}

- (void)respring {
NSTask* task = [[NSTask alloc] init];
[task setLaunchPath:@"/usr/bin/killall"];
[task setArguments:[NSArray arrayWithObjects:@"backboardd", nil]];
[task launch];
NSArray* launchPaths = @[@"/usr/bin/killall", @"/var/jb/usr/bin/killall"];
for (NSString* launchPath in launchPaths) {
if ([[NSFileManager defaultManager] fileExistsAtPath:launchPath]) {
NSTask* task = [[NSTask alloc] init];
[task setLaunchPath:launchPath];
[task setArguments:@[@"backboardd"]];
[task launch];
}
}
}

- (void)resetPrompt {
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: dev.traurige.eneko
Name: Eneko
Depends: firmware (>= 14.0), mobilesubstrate, preferenceloader, com.mrgcgamer.libgcuniversal
Conflicts: love.litten.eneko
Version: 1.2
Version: 1.2.1
Architecture: iphoneos-arm
Description: Video wallpapers for iOS
Maintainer: Traurige <[email protected]>
Expand Down

0 comments on commit 3cb4e11

Please sign in to comment.