     }
     
     func findBookmark(_ url: URL) -> Data? {
+        guard isSandboxed() else { return nil }
+
         if let data = bookmarks[url] {
             if self.fetchBookmark((key: url, value: data)) {
                 return data

    func loadBookmarks() -> Bool
    {
        //  Ignore loading unless configured
        guard isSandboxed() else
        {
            return false
        }

        let fm = FileManager.default
        

    // MARK:- Sandbox Support
    var bookmarks = [URL: Data]()

    func authenticateBaseURL(_ url: URL) -> URL {
        var baseURL = url
        let openPanel = NSOpenPanel()
        
        openPanel.message = "Authorize access to " + baseURL.lastPathComponent
        openPanel.prompt = "Authorize"
        openPanel.allowsMultipleSelection = false
        openPanel.canChooseFiles = false
        openPanel.canChooseDirectories = true
        openPanel.canCreateDirectories = false
        openPanel.directoryURL = baseURL.deletingLastPathComponent()
        
        openPanel.begin() { (result) -> Void in
            if (result == NSApplication.ModalResponse.OK) {
                if let authURL = openPanel.url {
                    if self.storeBookmark(url: authURL) {
                        baseURL = authURL
                    }
                    else
                    {
                        Swift.print("Yoink, unable to sandbox base \(authURL)")
                    }
                }
            }
        }
        return baseURL
    }
    
    func isSandboxed() -> Bool {
        let bundleURL = Bundle.main.bundleURL
        var staticCode:SecStaticCode?
