From 45c2d9b813fc7251c66de453ec59c7d9e97dae20 Mon Sep 17 00:00:00 2001 From: Shiloh Fen Date: Wed, 3 Sep 2025 01:18:31 -0500 Subject: [PATCH] fix(oscavmgr/start): replace current process Signed-off-by: Shiloh Fen --- src/atomic-xr/oscavmgr.nu | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 } -- 2.51.2