File tree Expand file tree Collapse file tree 5 files changed +8
-65
lines changed Expand file tree Collapse file tree 5 files changed +8
-65
lines changed Original file line number Diff line number Diff line change @@ -416,16 +416,13 @@ fn main() -> Result<ExitCode> {
416
416
) ;
417
417
env. insert ( "MUVM_SERVER_COOKIE" . to_owned ( ) , cookie. to_string ( ) ) ;
418
418
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) ;
429
426
}
430
427
431
428
let mut krun_config = KrunConfig {
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ pub struct Options {
17
17
pub server_port : u32 ,
18
18
pub fex_images : Vec < String > ,
19
19
pub merged_rootfs : bool ,
20
- pub sommelier : bool ,
21
20
pub interactive : bool ,
22
21
pub tty : bool ,
23
22
pub command : PathBuf ,
@@ -111,9 +110,6 @@ pub fn options() -> OptionParser<Options> {
111
110
. argument ( "SERVER_PORT" )
112
111
. fallback ( 3334 )
113
112
. display_fallback ( ) ;
114
- let sommelier = long ( "sommelier" )
115
- . help ( "Use sommelier + XWayland instead of x11bridge" )
116
- . switch ( ) ;
117
113
let interactive = long ( "interactive" )
118
114
. short ( 'i' )
119
115
. help ( "Attach to the command's stdin/out after starting it" )
@@ -139,7 +135,6 @@ pub fn options() -> OptionParser<Options> {
139
135
server_port,
140
136
fex_images,
141
137
merged_rootfs,
142
- sommelier,
143
138
interactive,
144
139
tty,
145
140
// positionals
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ use muvm::guest::fex::setup_fex;
11
11
use muvm:: guest:: mount:: mount_filesystems;
12
12
use muvm:: guest:: net:: configure_network;
13
13
use muvm:: guest:: socket:: setup_socket_proxy;
14
- use muvm:: guest:: sommelier:: exec_sommelier;
15
14
use muvm:: guest:: user:: setup_user;
16
15
use muvm:: guest:: x11:: setup_x11_forwarding;
17
16
use rustix:: process:: { getrlimit, setrlimit, Resource } ;
@@ -80,13 +79,8 @@ fn main() -> Result<()> {
80
79
let pulse_path = pulse_path. join ( "native" ) ;
81
80
setup_socket_proxy ( pulse_path, 3333 ) ?;
82
81
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) ?;
88
83
89
- // Fallback option if sommelier is not present or for direct X11 mode.
90
84
debug ! ( command: ? = options. command, command_args: ? = options. command_args; "exec" ) ;
91
85
let err = Command :: new ( & options. command )
92
86
. args ( options. command_args )
Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ pub mod fex;
3
3
pub mod mount;
4
4
pub mod net;
5
5
pub mod socket;
6
- pub mod sommelier;
7
6
pub mod user;
8
7
pub mod x11;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments