Merge pull request #121 from pop-os/zombie_jammy
This commit is contained in:
commit
fb2d6850d9
4 changed files with 30 additions and 22 deletions
2
Makefile
2
Makefile
|
|
@ -18,7 +18,7 @@ endif
|
||||||
|
|
||||||
VENDOR ?= 0
|
VENDOR ?= 0
|
||||||
ifneq ($(VENDOR),0)
|
ifneq ($(VENDOR),0)
|
||||||
ARGS += --locked
|
ARGS += --offline --locked
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TARGET_BIN="$(DESTDIR)$(bindir)/$(BINARY)"
|
TARGET_BIN="$(DESTDIR)$(bindir)/$(BINARY)"
|
||||||
|
|
|
||||||
3
debian/rules
vendored
3
debian/rules
vendored
|
|
@ -15,9 +15,6 @@ ifeq ($(VENDOR),1)
|
||||||
ischroot || make vendor
|
ischroot || make vendor
|
||||||
endif
|
endif
|
||||||
|
|
||||||
override_dh_auto_build:
|
|
||||||
CARGO_HOME="$$(pwd)/target/cargo" make
|
|
||||||
|
|
||||||
override_dh_installinit:
|
override_dh_installinit:
|
||||||
dh_installinit -r
|
dh_installinit -r
|
||||||
|
|
||||||
|
|
|
||||||
2
debian/source/options
vendored
Normal file
2
debian/source/options
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
tar-ignore=target
|
||||||
|
tar-ignore=vendor
|
||||||
|
|
@ -1137,24 +1137,33 @@ impl State {
|
||||||
workspace.toggle_floating_window(seat);
|
workspace.toggle_floating_window(seat);
|
||||||
}
|
}
|
||||||
Action::Spawn(command) => {
|
Action::Spawn(command) => {
|
||||||
if let Err(err) = std::process::Command::new("/bin/sh")
|
let wayland_display = self.common.socket.clone();
|
||||||
.arg("-c")
|
|
||||||
.arg(command.clone())
|
let display = self
|
||||||
.env("WAYLAND_DISPLAY", &self.common.socket)
|
.common
|
||||||
.env(
|
.xwayland_state
|
||||||
"DISPLAY",
|
.as_ref()
|
||||||
&self
|
.map(|s| format!(":{}", s.display))
|
||||||
.common
|
.unwrap_or_default();
|
||||||
.xwayland_state
|
|
||||||
.as_ref()
|
std::thread::spawn(move || {
|
||||||
.map(|s| format!(":{}", s.display))
|
let mut cmd = std::process::Command::new("/bin/sh");
|
||||||
.unwrap_or(String::new()),
|
|
||||||
)
|
cmd.arg("-c")
|
||||||
.env_remove("COSMIC_SESSION_SOCK")
|
.arg(command.clone())
|
||||||
.spawn()
|
.env("WAYLAND_DISPLAY", &wayland_display)
|
||||||
{
|
.env("DISPLAY", &display)
|
||||||
warn!(?err, "Failed to spawn \"{}\"", command);
|
.env_remove("COSMIC_SESSION_SOCK");
|
||||||
}
|
|
||||||
|
match cmd.spawn() {
|
||||||
|
Ok(mut child) => {
|
||||||
|
let _res = child.wait();
|
||||||
|
}
|
||||||
|
Err(err) => {
|
||||||
|
tracing::warn!(?err, "Failed to spawn \"{}\"", command);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue