blob: 8140dc08e2dd262d3099bdb5d98701c4e1775f06 (
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 --own-name=org.freedesktop.StatusNotifierItem-2-1 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
|