File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -421,7 +421,6 @@ fn main() -> Result<()> {
421421 ) ;
422422 env. insert ( "MUVM_SERVER_COOKIE" . to_owned ( ) , cookie. to_string ( ) ) ;
423423
424- #[ cfg( feature = "x11bridge" ) ]
425424 if options. direct_x11 {
426425 let display =
427426 env:: var ( "DISPLAY" ) . context ( "X11 forwarding requested but DISPLAY is unset" ) ?;
Original file line number Diff line number Diff line change @@ -109,14 +109,6 @@ pub fn options() -> OptionParser<Options> {
109109 . short ( 'x' )
110110 . help ( "Use direct X11 forwarding instead of sommelier + XWayland" )
111111 . switch ( ) ;
112-
113- #[ cfg( not( feature = "x11bridge" ) ) ]
114- let direct_x11 = direct_x11
115- . guard (
116- |x| !* x,
117- "--direct-x11 requires the `x11bridge` crate feature" ,
118- )
119- . hide ( ) ;
120112 let interactive = long ( "interactive" )
121113 . short ( 'i' )
122114 . help ( "Allocate a tty guest-side and connect it to the current stdin/out" )
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ use muvm::guest::net::configure_network;
1313use muvm:: guest:: socket:: setup_socket_proxy;
1414use muvm:: guest:: sommelier:: exec_sommelier;
1515use muvm:: guest:: user:: setup_user;
16- #[ cfg( feature = "x11bridge" ) ]
1716use muvm:: guest:: x11:: setup_x11_forwarding;
1817use rustix:: process:: { getrlimit, setrlimit, Resource } ;
1918
@@ -81,12 +80,7 @@ fn main() -> Result<()> {
8180 let pulse_path = pulse_path. join ( "native" ) ;
8281 setup_socket_proxy ( pulse_path, 3333 ) ?;
8382
84- #[ cfg( feature = "x11bridge" ) ]
85- let direct_x11 = setup_x11_forwarding ( run_path) ?;
86- #[ cfg( not( feature = "x11bridge" ) ) ]
87- let direct_x11 = false ;
88-
89- if !direct_x11 {
83+ if !setup_x11_forwarding ( run_path) ? {
9084 // Will not return if successful.
9185 exec_sommelier ( & options. command , & options. command_args )
9286 . context ( "Failed to execute sommelier" ) ?;
Original file line number Diff line number Diff line change @@ -5,5 +5,4 @@ pub mod net;
55pub mod socket;
66pub mod sommelier;
77pub mod user;
8- #[ cfg( feature = "x11bridge" ) ]
98pub mod x11;
You can’t perform that action at this time.
0 commit comments