import QtQuick
import Quickshell.Io

QtObject {
	required property string command
	required property string text
	required property string icon
	required property string icon_text
	property var keybind: null

	id: button

	readonly property var process: Process {
		command: ["sh", "-c", button.command]
	}

	function exec() {
		process.startDetached();
		console.log("Picked Logout Option, closing WLogout");
		wlogoutLoader.active = false;
	}
}
