Skip to content

Commit f123d70

Browse files
WhatAmISupposedToPutHereslp
authored andcommitted
Remove sommelier support.
It is in the way for a refactor i want to do, and you should be using x11bridge anyway. Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
1 parent a336fed commit f123d70

File tree

5 files changed

+8
-65
lines changed

5 files changed

+8
-65
lines changed

crates/muvm/src/bin/muvm.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff 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 {

crates/muvm/src/cli_options.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use muvm::guest::fex::setup_fex;
1111
use muvm::guest::mount::mount_filesystems;
1212
use muvm::guest::net::configure_network;
1313
use muvm::guest::socket::setup_socket_proxy;
14-
use muvm::guest::sommelier::exec_sommelier;
1514
use muvm::guest::user::setup_user;
1615
use muvm::guest::x11::setup_x11_forwarding;
1716
use 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)

crates/muvm/src/guest/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ pub mod fex;
33
pub mod mount;
44
pub mod net;
55
pub mod socket;
6-
pub mod sommelier;
76
pub mod user;
87
pub mod x11;

crates/muvm/src/guest/sommelier.rs

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)