#!/sbin/openrc-run DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" supervisor=supervise-daemon command="/usr/libexec/xdg-desktop-portal" command_args="--replace $command_args" error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" depend() { need dbus \ xdg-desktop-portal-gtk \ xdg-desktop-portal-wlr \ xdg-desktop-portal-darkman }