fix not working in systemd injection

This commit is contained in:
LeonardoTrapani
2025-10-10 19:27:52 +02:00
parent 8f94df4ad3
commit b437f575e6
4 changed files with 27 additions and 4 deletions
+4 -1
View File
@@ -1,12 +1,15 @@
[Unit]
Description=Hyprvoice voice-to-text daemon
Documentation=https://github.com/leonardotrapani/hyprvoice
After=pipewire.service
After=pipewire.service graphical-session.target
Wants=pipewire.service
Requisite=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/hyprvoice serve
ExecStartPre=/usr/bin/systemctl --user import-environment WAYLAND_DISPLAY XDG_RUNTIME_DIR
ExecStartPre=/bin/sh -c 'until [ -n "$WAYLAND_DISPLAY" ]; do sleep 0.1; done'
Restart=on-failure
RestartSec=5