From 4497903f666f1cd03fd30c1c95e83c03075f66f2 Mon Sep 17 00:00:00 2001 From: mac-user669 Date: Sat, 25 Jan 2020 11:12:12 -0500 Subject: [PATCH] Fix Respring button --- zenithdarkprefs/ZNDarkPrefsRootListController.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zenithdarkprefs/ZNDarkPrefsRootListController.m b/zenithdarkprefs/ZNDarkPrefsRootListController.m index 5695a9c..e5edc58 100644 --- a/zenithdarkprefs/ZNDarkPrefsRootListController.m +++ b/zenithdarkprefs/ZNDarkPrefsRootListController.m @@ -77,6 +77,13 @@ return _specifiers; } +-(void)respring { + NSTask *task = [[[NSTask alloc] init] autorelease]; + [task setLaunchPath:@"/usr/bin/killall"]; + [task setArguments:[NSArray arrayWithObjects:@"backboardd", nil]]; + [task launch]; + +} -(void)doAFancyRespring {