-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdictate.service
More file actions
27 lines (25 loc) · 845 Bytes
/
dictate.service
File metadata and controls
27 lines (25 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[Unit]
Description=Multi-Dictate Service
Documentation=https://github.com/yourusername/multi-dictate
After=graphical-session.target
[Service]
Type=simple
# Use the pip-installed command
ExecStart=%h/.local/bin/multi-dictate
# Restart on failure with delay
Restart=on-failure
RestartSec=5
# Environment variables for proper display and audio
Environment="DISPLAY=:0"
Environment="PULSE_RUNTIME_PATH=/run/user/%U/pulse"
# Import display environment from user session
PassEnvironment=DISPLAY XAUTHORITY WAYLAND_DISPLAY
# Ensure proper permissions for GUI operations
# Note: XAUTHORITY will be inherited from user session via PassEnvironment
# Add local bin to PATH for user-installed packages
Environment="PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin"
# Log output
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=default.target