[Unit]
Description=The Panama shell (Quickshell)
Documentation=https://github.com/gibbyb/Panama
# Started per-session by hypr/autostart.lua, never enabled globally --
# graphical-session.target is active under GNOME too, and two shells fighting
# over org.freedesktop.Notifications is the exact bug the notification-daemon
# warning in change-settings exists to prevent.
#
# The unit exists for one property a compositor child cannot have: the shell
# comes BACK. Quickshell segfaulted mid-session (a Qt image-teardown bug, not
# this configuration) and the desktop stayed bar-less until someone noticed
# and knew what to type. Restart=on-failure turns that into a two-second
# flicker -- and panama-crash-watch's report of the crash finally has a
# notification server to arrive on, because the restarted shell is serving
# again by the time the watcher's bus wait comes around.
PartOf=graphical-session.target
StartLimitIntervalSec=120
StartLimitBurst=5

[Service]
Type=simple
ExecStart=/usr/bin/quickshell
Restart=on-failure
RestartSec=2
