aboutsummaryrefslogtreecommitdiff
path: root/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2019-03-13 02:32:48 -0500
committerFivePixels <o5pxels@gmail.com>2019-03-13 02:32:48 -0500
commit44fd4eedbbba9d28efd301c554f611c08f26a3ca (patch)
treefc778dd663994dff3123469a7630f0d9d48e9d47 /Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper
parent7799cba77fd833817d16465c5be96ff7fcd46451 (diff)
downloaddwa140shortcut-44fd4eedbbba9d28efd301c554f611c08f26a3ca.tar.xz
dwa140shortcut-44fd4eedbbba9d28efd301c554f611c08f26a3ca.zip
Removed Carthage
Diffstat (limited to 'Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper')
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/Info.plist28
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements8
-rw-r--r--Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/main.swift25
3 files changed, 0 insertions, 61 deletions
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/Info.plist b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/Info.plist
deleted file mode 100644
index a075677..0000000
--- a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/Info.plist
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleExecutable</key>
- <string>$(EXECUTABLE_NAME)</string>
- <key>CFBundleIdentifier</key>
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>$(PRODUCT_NAME)</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0.0</string>
- <key>CFBundleVersion</key>
- <string>1</string>
- <key>LSMinimumSystemVersion</key>
- <string>$(MACOSX_DEPLOYMENT_TARGET)</string>
- <key>NSHumanReadableCopyright</key>
- <string>MIT © Sindre Sorhus</string>
- <key>LSBackgroundOnly</key>
- <true/>
- <key>NSPrincipalClass</key>
- <string>NSApplication</string>
-</dict>
-</plist>
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements
deleted file mode 100644
index 852fa1a..0000000
--- a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/LaunchAtLoginHelper.entitlements
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>com.apple.security.app-sandbox</key>
- <true/>
-</dict>
-</plist>
diff --git a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/main.swift b/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/main.swift
deleted file mode 100644
index ad7fd4f..0000000
--- a/Carthage/Checkouts/LaunchAtLogin/LaunchAtLoginHelper/main.swift
+++ /dev/null
@@ -1,25 +0,0 @@
-import Cocoa
-
-final class AppDelegate: NSObject, NSApplicationDelegate {
- func applicationDidFinishLaunching(_ notification: Notification) {
- let bundleId = Bundle.main.bundleIdentifier!
- // TODO: Make this more strict by only replacing at the end
- let mainBundleId = bundleId.replacingOccurrences(of: "-LaunchAtLoginHelper", with: "")
-
- // Ensure the app is not already running
- guard NSRunningApplication.runningApplications(withBundleIdentifier: mainBundleId).isEmpty else {
- NSApp.terminate(nil)
- return
- }
-
- let pathComponents = (Bundle.main.bundlePath as NSString).pathComponents
- let mainPath = NSString.path(withComponents: Array(pathComponents[0...(pathComponents.count - 5)]))
- NSWorkspace.shared.launchApplication(mainPath)
- NSApp.terminate(nil)
- }
-}
-
-private let app = NSApplication.shared
-private let delegate = AppDelegate()
-app.delegate = delegate
-app.run()