Skip to content

Commit b40bf03

Browse files
slphoshinolina
authored andcommitted
Default to using x11bridge instead of sommelier
Replace "direct_x11" with "sommelier" in muvm command line arguments and default to using x11bridge unless the latter is present. Signed-off-by: Sergio Lopez <[email protected]>
1 parent d937acb commit b40bf03

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

crates/muvm/src/bin/muvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ fn main() -> Result<()> {
421421
);
422422
env.insert("MUVM_SERVER_COOKIE".to_owned(), cookie.to_string());
423423

424-
if options.direct_x11 {
424+
if !options.sommelier {
425425
let display =
426426
env::var("DISPLAY").context("X11 forwarding requested but DISPLAY is unset")?;
427427
env.insert("HOST_DISPLAY".to_string(), display);

crates/muvm/src/cli_options.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct Options {
1616
pub root_server_port: u32,
1717
pub server_port: u32,
1818
pub fex_images: Vec<String>,
19-
pub direct_x11: bool,
19+
pub sommelier: bool,
2020
pub interactive: bool,
2121
pub command: PathBuf,
2222
pub command_args: Vec<String>,
@@ -105,9 +105,8 @@ pub fn options() -> OptionParser<Options> {
105105
.argument("SERVER_PORT")
106106
.fallback(3334)
107107
.display_fallback();
108-
let direct_x11 = long("direct-x11")
109-
.short('x')
110-
.help("Use direct X11 forwarding instead of sommelier + XWayland")
108+
let sommelier = long("sommelier")
109+
.help("Use sommelier + XWayland instead of x11bridge")
111110
.switch();
112111
let interactive = long("interactive")
113112
.short('i')
@@ -129,7 +128,7 @@ pub fn options() -> OptionParser<Options> {
129128
root_server_port,
130129
server_port,
131130
fex_images,
132-
direct_x11,
131+
sommelier,
133132
interactive,
134133
// positionals
135134
command,

0 commit comments

Comments
 (0)