         guard self.pathRsyncOSXsched.stringValue.isEmpty == false else {
             self.nopathtorsyncossched()
             return
+        }
+        if self.pathRsyncOSXsched.stringValue.contains("$HOME") {
+            let replaced = self.pathRsyncOSXsched.stringValue.replacingOccurrences(of: "$HOME",
+                                                                                   with: self.nameandpaths?.userHomeDirectoryPath ?? "")
+            self.pathRsyncOSXsched.stringValue = replaced
         }
         if self.pathRsyncOSXsched.stringValue.hasSuffix("/") == false {
             pathtorsyncosxsched = self.pathRsyncOSXsched.stringValue + "/"

        self.sshport.delegate = self
        self.nologging.state = .on
        self.reloadconfigurationsDelegate = ViewControllerReference.shared.getvcref(viewcontroller: .vctabmain) as? ViewControllerMain
    }

    override func viewDidAppear() {

            self.nopathtorsyncosx()
            return
        }
        if self.pathRsyncOSX.stringValue.contains("$HOME") {
            let replaced = self.pathRsyncOSX.stringValue.replacingOccurrences(of: "$HOME",
                                                                              with: self.nameandpaths?.userHomeDirectoryPath ?? "")
            self.pathRsyncOSX.stringValue = replaced
        }
        if self.pathRsyncOSX.stringValue.hasSuffix("/") == false {
            pathtorsyncosx = self.pathRsyncOSX.stringValue + "/"
        } else {
