foot/foot-server@.service.in
Soc Virnyl S. Estela 13971e7371
Update systemd service files
- add ConditionEnvironment so that it only runs if WAYLAND_DISPLAY
  environmental variable exists.
- replace wayland-instance@.target to the generic
  graphical-session.target. Not sure about this btw but I feel like
  wayland-instance@.target is not needed.
- remove `Requires=%N.socket` in [Unit]. Documentations says "No implicit WantedBy= or RequiredBy= dependency from the socket to the service is added. This means that the service may be started without the socket, in which case it must be able to open sockets by itself. To prevent this, an explicit Requires= dependency may be added."
- add `Also=%N.socket` in [Install].
- replace wayland-instance@.target to generic sockets.target in
  foot-server@.socket.
2022-05-17 10:22:32 +08:00

17 lines
390 B
SYSTEMD

[Unit]
Description=Foot terminal server mode for WAYLAND_DISPLAY=%i
Documentation=man:foot(1)
PartOf=graphical-session.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
[Service]
ExecStart=@bindir@/foot --server=0
Environment="WAYLAND_DISPLAY=%i"
NonBlocking=true
StandardInput=socket
Restart=on-failure
[Install]
Also=%N.socket
WantedBy=graphical-session.target