#!/sbin/openrc-run # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License, v2 or later # USER-scope service, the counterpart of the systemd user unit. Start it from # inside a desktop session: # # rc-service --user bentoo-tray start # # Not a system service: the tray talks to the notification server and the # StatusNotifierHost on the session bus, which exist only in a logged-in session. depend() { need dbus } # openrc-run does not inherit the session's environment, so the address of the # session bus has to be stated. ${XDG_RUNTIME_DIR}/bus is where every current # dbus-daemon/dbus-broker session puts it. DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" export DBUS_SESSION_BUS_ADDRESS supervisor=supervise-daemon command="/usr/bin/bentoo-tray" respawn_delay=30