fix: setcap wivrn-server
Some checks are pending
/ cargo-fmtcheck (push) Waiting to run
/ cargo-clippy (push) Waiting to run
/ cargo-test (push) Waiting to run
/ appimage (push) Waiting to run

This commit is contained in:
Sapphire ­ 2024-10-19 15:33:19 +00:00 committed by GabMus
commit cd33a8abbd
2 changed files with 14 additions and 17 deletions

View file

@ -533,7 +533,6 @@ impl AsyncComponent for App {
.sender() .sender()
.emit(BuildWindowMsg::UpdateBuildStatus(BuildStatus::Done)); .emit(BuildWindowMsg::UpdateBuildStatus(BuildStatus::Done));
let profile = self.get_selected_profile(); let profile = self.get_selected_profile();
if profile.xrservice_type == XRServiceType::Monado {
if dep_pkexec().check() { if dep_pkexec().check() {
self.setcap_confirm_dialog.present(Some(&self.app_win)); self.setcap_confirm_dialog.present(Some(&self.app_win));
} else { } else {
@ -548,7 +547,6 @@ impl AsyncComponent for App {
Some(&self.app_win.clone().upcast()) Some(&self.app_win.clone().upcast())
); );
} }
}
self.build_window self.build_window
.sender() .sender()
.emit(BuildWindowMsg::UpdateCanClose(true)); .emit(BuildWindowMsg::UpdateCanClose(true));

View file

@ -74,8 +74,7 @@ pub fn setcap_cap_sys_nice_eip_cmd(profile: &Profile) -> Vec<String> {
"CAP_SYS_NICE=eip".into(), "CAP_SYS_NICE=eip".into(),
profile profile
.prefix .prefix
// not needed for wivrn, that's why monado is hardcoded .join(profile.xrservice_binary())
.join("bin/monado-service")
.to_string_lossy() .to_string_lossy()
.to_string(), .to_string(),
] ]