 				}
 			}
 		}
+		if let button = mHomeResetButton {
+			button.buttonPressedCallback = {
+				() -> Void in
+				/* Use default home */
+				let url = URL(fileURLWithPath: NSHomeDirectory())
+				if let field = self.mHomeDirectoryField {
+					field.text = url.path
+				}
+				let userpref = CNPreference.shared.userPreference
+				userpref.homeDirectory = url
+				/* Reset bookmark */
+				let bookpref = CNBookmarkPreference.sharedPreference
+				bookpref.clear()
+				bookpref.synchronize()
+			}
+		}
 		#endif
 
 		if let field = mTerminalWidthField {

		selectbutton.title = "Select"
		mHomeSelectButton = selectbutton

		let top = KCLabeledStackView()
		top.title = "Home directory"
		let content = top.contentsView
		content.axis = .horizontal
		content.addArrangedSubViews(subViews: [pathfield, selectbutton])

		return top
	}

	#if os(OSX)
	private var	mHomeDirectoryField:		KCTextField?		= nil
	private var 	mHomeSelectButton:		KCButton?		= nil
	private var 	mHomeResetButton:		KCButton?		= nil
	#endif
	private var	mTerminalWidthField:		KCTextEdit?		= nil
	private var	mTerminalHeightField:		KCTextEdit?		= nil
