diff --git a/src/atomic-xr/oscavmgr.nu b/src/atomic-xr/oscavmgr.nu index 0e48e9d..9915452 100644 --- a/src/atomic-xr/oscavmgr.nu +++ b/src/atomic-xr/oscavmgr.nu @@ -7,5 +7,12 @@ const self = path self . export def start [ module: string # babble, openxr (WiVRn), alvr ] { - run-external ($self | path join 'bin' 'oscavmgr-launch.sh') + if (which oscavmgr | length) == 0 or (which VrcAdvert | length) == 0 { + error make -u { + msg: "OscAvMgr and VrcAdvert are not installed" + help: "Use `brew install oscavmgr vrc-advert` to install them" + } + } + + exec ($self | path join 'bin' 'oscavmgr-launch.sh') $module }