systemd/user/blueman-applet.service

18 lines
524 B
Desktop File

# Blueman is attached to mango-session.target so it does not start during
# early default.target boot, where WAYLAND_DISPLAY may be missing and start-pre
# can hang until timeout.
[Unit]
Description=Blueman Applet
StartLimitIntervalSec=0
PartOf=mango-session.target
[Service]
Type=simple
ExecStartPre=/usr/bin/sh -c 'until [ -n "$WAYLAND_DISPLAY" ] && [ -S "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ]; do sleep 0.2; done'
ExecStart=/usr/bin/blueman-applet
Restart=on-failure
RestartSec=2
[Install]
WantedBy=mango-session.target