mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 06:38:52 +00:00
fix: don't setcap on wivrn executable
This commit is contained in:
parent
eccb5abb48
commit
69e54abb33
1 changed files with 10 additions and 11 deletions
|
@ -185,7 +185,11 @@ impl SimpleComponent for App {
|
||||||
self.build_window.sender().emit(
|
self.build_window.sender().emit(
|
||||||
BuildWindowMsg::UpdateBuildStatus(BuildStatus::Done),
|
BuildWindowMsg::UpdateBuildStatus(BuildStatus::Done),
|
||||||
);
|
);
|
||||||
self.setcap_confirm_dialog.present();
|
// apparently setcap on wivrn causes issues, so in case
|
||||||
|
// it's not monado, we're just skipping this
|
||||||
|
if self.get_selected_profile().xrservice_type == XRServiceType::Monado {
|
||||||
|
self.setcap_confirm_dialog.present();
|
||||||
|
}
|
||||||
self.build_window
|
self.build_window
|
||||||
.sender()
|
.sender()
|
||||||
.emit(BuildWindowMsg::UpdateCanClose(true));
|
.emit(BuildWindowMsg::UpdateCanClose(true));
|
||||||
|
@ -310,17 +314,12 @@ impl SimpleComponent for App {
|
||||||
Msg::RunSetCap => {
|
Msg::RunSetCap => {
|
||||||
if !check_dependency(pkexec_dep()) {
|
if !check_dependency(pkexec_dep()) {
|
||||||
println!("pkexec not found, skipping setcap");
|
println!("pkexec not found, skipping setcap");
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
let profile = self.get_selected_profile();
|
let profile = self.get_selected_profile();
|
||||||
setcap_cap_sys_nice_eip(match profile.xrservice_type {
|
setcap_cap_sys_nice_eip(format!(
|
||||||
XRServiceType::Monado => {
|
"{pfx}/bin/monado-service",
|
||||||
format!("{pfx}/bin/monado-service", pfx = profile.prefix)
|
pfx = profile.prefix
|
||||||
}
|
));
|
||||||
XRServiceType::Wivrn => {
|
|
||||||
format!("{pfx}/bin/wivrn-serer", pfx = profile.prefix)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Msg::ProfileSelected(prof_name) => {
|
Msg::ProfileSelected(prof_name) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue