mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-27 06:46:44 -04:00
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.
This commit is contained in:
parent
7e8b5f9610
commit
13971e7371
2 changed files with 16 additions and 9 deletions
|
|
@ -1,13 +1,17 @@
|
||||||
[Service]
|
|
||||||
ExecStart=@bindir@/foot --server=0
|
|
||||||
Environment=WAYLAND_DISPLAY=%i
|
|
||||||
NonBlocking=true
|
|
||||||
StandardInput=socket
|
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Requires=%N.socket
|
|
||||||
Description=Foot terminal server mode for WAYLAND_DISPLAY=%i
|
Description=Foot terminal server mode for WAYLAND_DISPLAY=%i
|
||||||
Documentation=man:foot(1)
|
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]
|
[Install]
|
||||||
WantedBy=wayland-instance@.target
|
Also=%N.socket
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Foot server socket
|
||||||
|
|
||||||
[Socket]
|
[Socket]
|
||||||
ListenStream=%t/foot-%i.sock
|
ListenStream=%t/foot-%i.sock
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=wayland-instance@.target
|
WantedBy=sockets.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue