diff --git a/MonitorControlHelper/Info.plist b/MonitorControlHelper/Info.plist deleted file mode 100644 index 0f1277b..0000000 --- a/MonitorControlHelper/Info.plist +++ /dev/null @@ -1,34 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIconFile - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - $(MARKETING_VERSION) - CFBundleVersion - 6293 - LSApplicationCategoryType - public.app-category.utilities - LSBackgroundOnly - - LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) - NSHumanReadableCopyright - MIT Licensed. 2018. - NSPrincipalClass - NSApplication - - diff --git a/MonitorControlHelper/MonitorControlHelper.entitlements b/MonitorControlHelper/MonitorControlHelper.entitlements deleted file mode 100644 index ba00d97..0000000 --- a/MonitorControlHelper/MonitorControlHelper.entitlements +++ /dev/null @@ -1,12 +0,0 @@ - - - - - com.apple.security.app-sandbox - - com.apple.security.cs.allow-jit - - com.apple.security.files.user-selected.read-only - - - diff --git a/MonitorControlHelper/main.swift b/MonitorControlHelper/main.swift deleted file mode 100644 index 9251541..0000000 --- a/MonitorControlHelper/main.swift +++ /dev/null @@ -1,26 +0,0 @@ -import Cocoa - -class AppDelegate: NSObject, NSApplicationDelegate { - func applicationDidFinishLaunching(_: Notification) { - let mainBundleID = Bundle.main.bundleIdentifier!.replacingOccurrences(of: "Helper", with: "") - - let bundlePath = Bundle.main.bundlePath as NSString - - guard NSRunningApplication.runningApplications(withBundleIdentifier: mainBundleID).isEmpty else { - return NSApp.terminate(self) - } - - let pathComponents = bundlePath.pathComponents - let path = NSString.path(withComponents: Array(pathComponents[0 ..< (pathComponents.count - 4)])) - - NSWorkspace.shared.launchApplication(path) - NSApp.terminate(nil) - } - - func applicationWillTerminate(_: Notification) {} -} - -let app = NSApplication.shared -let delegate = AppDelegate() -app.delegate = delegate -app.run()