[Unit]
Description=FCB Looper GUI Application
After=weston.service
Wants=weston.service
Requires=graphical.target

[Service]
Type=simple
User=weston
Group=weston
Environment="WAYLAND_DISPLAY=wayland-1"
Environment="XDG_RUNTIME_DIR=/run/user/1000"
Environment="RUST_LOG=info"
ExecStartPre=/bin/sleep 3
ExecStart=/usr/bin/gui
Restart=always
RestartSec=5
# Resource limits
MemoryMax=256M
CPUQuota=80%

[Install]
WantedBy=graphical.target