Commit 90b5eab9 authored by Joel Rennich's avatar Joel Rennich

Allow for Notify and UserInput to be skipped

parent d28d5c53
Pipeline #53453847 passed with stage
in 2 minutes and 14 seconds
......@@ -15,6 +15,13 @@ class Notify : NoLoMechanism {
@objc func run() {
// check if we should skip this or not
if FileManager.default.fileExists(atPath: "/tmp/.skipNotify") {
_ = allowLogin()
return
}
NSApp.activate(ignoringOtherApps: true)
let notifyWindow = NoLoNotify(windowNibName: NSNib.Name("NoLoNotify"))
......
......@@ -12,6 +12,14 @@ import Cocoa
@objc class UserInput : NoLoMechanism {
@objc func run() {
// check if we should skip this or not
if FileManager.default.fileExists(atPath: "/tmp/.skipUserInput") {
_ = allowLogin()
return
}
// run the UI if we have the settings
if let inputSettings = getManagedPreference(key: .UserInputUI) as? [ String : AnyObject ] {
......
......@@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>1.4.0-Alpha5</string>
<key>CFBundleVersion</key>
<string>336</string>
<string>337</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2019 Orchard &amp; Grove. All rights reserved.</string>
<key>NSPrincipalClass</key>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment