mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:43:44 +08:00
fix: Allow core files in specific directories to be upgraded normally (#857)
This commit is contained in:
parent
4f7e8116cb
commit
07a989e004
@ -22,7 +22,7 @@ pub fn grant_permission(core: String) -> anyhow::Result<()> {
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
let output = {
|
let output = {
|
||||||
let path = path.replace(' ', "\\ "); // 避免路径中有空格
|
let path = path.replace(' ', "\\ "); // 避免路径中有空格
|
||||||
let shell = format!("setcap cap_net_bind_service,cap_net_admin=+ep {path}");
|
let shell = format!("setcap cap_net_bind_service,cap_net_admin,cap_dac_override=+ep {path}");
|
||||||
|
|
||||||
let sudo = match Command::new("which").arg("pkexec").output() {
|
let sudo = match Command::new("which").arg("pkexec").output() {
|
||||||
Ok(output) => {
|
Ok(output) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user