             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 {

        guard self.pathRsyncOSXsched.stringValue.isEmpty == false else {
            self.nopathtorsyncossched()
            return
        }
        if self.pathRsyncOSXsched.stringValue.hasSuffix("/") == false {
            pathtorsyncosxsched = self.pathRsyncOSXsched.stringValue + "/"

    private func verifyrsync() {
        var rsyncpath: String?
        if self.rsyncPath.stringValue.isEmpty == false {
            if self.rsyncPath.stringValue.contains("$HOME") {
                let replaced = self.rsyncPath.stringValue.replacingOccurrences(of: "$HOME",
                                                                               with: self.nameandpaths?.userHomeDirectoryPath ?? "")
                self.rsyncPath.stringValue = replaced
            }
            self.statuslightpathrsync.isHidden = false
            if self.rsyncPath.stringValue.hasSuffix("/") == false {
                rsyncpath = self.rsyncPath.stringValue + "/" + ViewControllerReference.shared.rsync
