#!/sbin/openrc-run

description="Sxmo Running Environment Variables"

# SSH sessions grab the running Sxmo environment variables, but not all of them.
# This dummy services hold missing variables so that those sessions can restart
# openrc-user services that need them.

depend() {
	# comes from rc.conf "rc_env_allow"
	reexport DISPLAY # drop if sway handle it
	reexport WAYLAND_DISPLAY # drop if sway handle it
	reexport XDG_SESSION_TYPE
	reexport XDG_CURRENT_DESKTOP
	# exported from init scripts and not grabbed from ssh
	reexport SXMO_TERMINAL
	reexport SXMO_KEYBOARD
}

start() {
	eend 0
}
