mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-24 01:40:12 -05:00
Ties systemd units to graphical-session.target
- wayland-instance template target was a mistake. Systemd does not support simultaneous same user session, so stop trying to go against that. - Only start systemd units in Wayland environments.
This commit is contained in:
parent
c12db68363
commit
d3ffb0bde1
4 changed files with 14 additions and 10 deletions
|
|
@ -1,13 +1,13 @@
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@bindir@/foot --server=3
|
ExecStart=@bindir@/foot --server=3
|
||||||
Environment=WAYLAND_DISPLAY=%i
|
|
||||||
UnsetEnvironment=LISTEN_PID LISTEN_FDS LISTEN_FDNAMES
|
UnsetEnvironment=LISTEN_PID LISTEN_FDS LISTEN_FDNAMES
|
||||||
NonBlocking=true
|
NonBlocking=true
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Requires=%N.socket
|
Requires=%N.socket
|
||||||
Description=Foot terminal server mode for WAYLAND_DISPLAY=%i
|
Description=Foot terminal server mode
|
||||||
Documentation=man:foot(1)
|
Documentation=man:foot(1)
|
||||||
|
PartOf=graphical-session.target
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=wayland-instance@.target
|
WantedBy=graphical-session.target
|
||||||
9
foot-server.socket
Normal file
9
foot-server.socket
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Socket]
|
||||||
|
ListenStream=%t/foot.sock
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
PartOf=graphical-session.target
|
||||||
|
ConditionEnvironment=WAYLAND_DISPLAY
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
[Socket]
|
|
||||||
ListenStream=%t/foot-%i.sock
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=wayland-instance@.target
|
|
||||||
|
|
@ -329,13 +329,13 @@ if systemd.found() or custom_systemd_units_dir != ''
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
configuration: configuration,
|
configuration: configuration,
|
||||||
input: 'foot-server@.service.in',
|
input: 'foot-server.service.in',
|
||||||
output: '@BASENAME@',
|
output: '@BASENAME@',
|
||||||
install_dir: systemd_units_dir
|
install_dir: systemd_units_dir
|
||||||
)
|
)
|
||||||
|
|
||||||
install_data(
|
install_data(
|
||||||
'foot-server@.socket',
|
'foot-server.socket',
|
||||||
install_dir: systemd_units_dir)
|
install_dir: systemd_units_dir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue