Skip to content

Commit b23b865

Browse files
committed
muvm-guest: add support for running as muvm-hidpipe
Signed-off-by: Val Packett <[email protected]>
1 parent 6382c16 commit b23b865

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/muvm/src/guest/bin/muvm-guest.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ fn main() -> Result<ExitCode> {
4141
bridge_loop_with_listenfd::<X11ProtocolHandler>(|| "/tmp/.X11-unix/X1".to_owned());
4242
return Ok(ExitCode::SUCCESS);
4343
},
44+
"muvm-hidpipe" => {
45+
let config_path =
46+
env::var("MUVM_REMOTE_CONFIG").context("expected MUVM_REMOTE_CONFIG to be set")?;
47+
let options = parse_config(config_path)?;
48+
let uid = options.uid;
49+
start_hidpipe(uid);
50+
return Ok(ExitCode::SUCCESS);
51+
},
4452
"muvm-remote" => {
4553
let rt = tokio::runtime::Runtime::new().unwrap();
4654
let mut command_args = env::args().skip(1);

0 commit comments

Comments
 (0)