mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-09-26 03:08:37 +00:00
fix: setcap wivrn-server
This commit is contained in:
parent
59b035c49d
commit
cd33a8abbd
2 changed files with 14 additions and 17 deletions
|
@ -533,7 +533,6 @@ impl AsyncComponent for App {
|
|||
.sender()
|
||||
.emit(BuildWindowMsg::UpdateBuildStatus(BuildStatus::Done));
|
||||
let profile = self.get_selected_profile();
|
||||
if profile.xrservice_type == XRServiceType::Monado {
|
||||
if dep_pkexec().check() {
|
||||
self.setcap_confirm_dialog.present(Some(&self.app_win));
|
||||
} else {
|
||||
|
@ -548,7 +547,6 @@ impl AsyncComponent for App {
|
|||
Some(&self.app_win.clone().upcast())
|
||||
);
|
||||
}
|
||||
}
|
||||
self.build_window
|
||||
.sender()
|
||||
.emit(BuildWindowMsg::UpdateCanClose(true));
|
||||
|
|
|
@ -74,8 +74,7 @@ pub fn setcap_cap_sys_nice_eip_cmd(profile: &Profile) -> Vec<String> {
|
|||
"CAP_SYS_NICE=eip".into(),
|
||||
profile
|
||||
.prefix
|
||||
// not needed for wivrn, that's why monado is hardcoded
|
||||
.join("bin/monado-service")
|
||||
.join(profile.xrservice_binary())
|
||||
.to_string_lossy()
|
||||
.to_string(),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue