修复网页触发器点击后无响应的问题。原因是 defer_triggers 模式下, pending trigger 必须等待整个 sequence 播完才触发,当 step 有 random_loop_range [2,15] 时用户可能要等几分钟。 现在改为当前 step 循环结束后立即检查并执行 pending trigger。 同时添加 systemd service 脚本。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
511 B
Desktop File
20 lines
511 B
Desktop File
[Unit]
|
|
Description=ShowenV2 — 数字生命窗口平台
|
|
After=network.target dbus.service
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=showen
|
|
Environment=DISPLAY=:0
|
|
Environment=XAUTHORITY=/home/showen/.Xauthority
|
|
WorkingDirectory=/home/showen/Showen/ShowenV2
|
|
ExecStart=/home/showen/Showen/ShowenV2/target/release/showen_v2 --config /home/showen/Showen/ShowenV2/configs/dog_state_machine.json
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=graphical.target
|