File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -416,16 +416,13 @@ fn main() -> Result<ExitCode> {
416416 ) ;
417417 env. insert ( "MUVM_SERVER_COOKIE" . to_owned ( ) , cookie. to_string ( ) ) ;
418418
419- if !options. sommelier {
420- let display =
421- env:: var ( "DISPLAY" ) . context ( "X11 forwarding requested but DISPLAY is unset" ) ?;
422- env. insert ( "HOST_DISPLAY" . to_string ( ) , display) ;
423-
424- // And forward XAUTHORITY. This will be modified to fix the
425- // display name in muvm-guest.
426- if let Ok ( xauthority) = env:: var ( "XAUTHORITY" ) {
427- env. insert ( "XAUTHORITY" . to_string ( ) , xauthority) ;
428- }
419+ let display = env:: var ( "DISPLAY" ) . context ( "X11 forwarding requested but DISPLAY is unset" ) ?;
420+ env. insert ( "HOST_DISPLAY" . to_string ( ) , display) ;
421+
422+ // And forward XAUTHORITY. This will be modified to fix the
423+ // display name in muvm-guest.
424+ if let Ok ( xauthority) = env:: var ( "XAUTHORITY" ) {
425+ env. insert ( "XAUTHORITY" . to_string ( ) , xauthority) ;
429426 }
430427
431428 let mut krun_config = KrunConfig {
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ pub struct Options {
1717 pub server_port : u32 ,
1818 pub fex_images : Vec < String > ,
1919 pub merged_rootfs : bool ,
20- pub sommelier : bool ,
2120 pub interactive : bool ,
2221 pub tty : bool ,
2322 pub command : PathBuf ,
@@ -111,9 +110,6 @@ pub fn options() -> OptionParser<Options> {
111110 . argument ( "SERVER_PORT" )
112111 . fallback ( 3334 )
113112 . display_fallback ( ) ;
114- let sommelier = long ( "sommelier" )
115- . help ( "Use sommelier + XWayland instead of x11bridge" )
116- . switch ( ) ;
117113 let interactive = long ( "interactive" )
118114 . short ( 'i' )
119115 . help ( "Attach to the command's stdin/out after starting it" )
@@ -139,7 +135,6 @@ pub fn options() -> OptionParser<Options> {
139135 server_port,
140136 fex_images,
141137 merged_rootfs,
142- sommelier,
143138 interactive,
144139 tty,
145140 // positionals
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ use muvm::guest::fex::setup_fex;
1111use muvm:: guest:: mount:: mount_filesystems;
1212use muvm:: guest:: net:: configure_network;
1313use muvm:: guest:: socket:: setup_socket_proxy;
14- use muvm:: guest:: sommelier:: exec_sommelier;
1514use muvm:: guest:: user:: setup_user;
1615use muvm:: guest:: x11:: setup_x11_forwarding;
1716use rustix:: process:: { getrlimit, setrlimit, Resource } ;
@@ -80,13 +79,8 @@ fn main() -> Result<()> {
8079 let pulse_path = pulse_path. join ( "native" ) ;
8180 setup_socket_proxy ( pulse_path, 3333 ) ?;
8281
83- if !setup_x11_forwarding ( run_path) ? {
84- // Will not return if successful.
85- exec_sommelier ( & options. command , & options. command_args )
86- . context ( "Failed to execute sommelier" ) ?;
87- }
82+ setup_x11_forwarding ( run_path) ?;
8883
89- // Fallback option if sommelier is not present or for direct X11 mode.
9084 debug ! ( command: ? = options. command, command_args: ? = options. command_args; "exec" ) ;
9185 let err = Command :: new ( & options. command )
9286 . args ( options. command_args )
Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ pub mod fex;
33pub mod mount;
44pub mod net;
55pub mod socket;
6- pub mod sommelier;
76pub mod user;
87pub mod x11;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments