blob: 264eb6e3f5d4f74a116f406674775e365218cf00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[Unit]
Description=Signal Desktop (flatpak)
PartOf=graphical-session.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
[Service]
Type=simple
ExecStart=/usr/bin/flatpak run org.signal.Signal --start-in-tray
# Electron + "minimize to tray" turns SIGTERM into a window-close which
# hides instead of exits, so systemd would wait for the stop timeout
# before SIGKILLing. Use flatpak's instance manager to kill it directly.
ExecStop=/usr/bin/flatpak kill org.signal.Signal
Restart=on-failure
RestartSec=5s
TimeoutStopSec=10s
[Install]
WantedBy=sway-session.target
|