Revert "feat: disable running with admin permission and check service mode"

This reverts commit a0f9fb90ee.
This commit is contained in:
MystiPanda
2024-06-16 12:04:20 +08:00
parent 19b6f78c8a
commit a9ef32c32f
4 changed files with 16 additions and 71 deletions

View File

@@ -19,16 +19,6 @@ fn main() -> std::io::Result<()> {
println!("app exists");
return Ok(());
}
// 权限检测
if feat::check_permission().is_ok() {
println!("please do not run with admin permission");
tauri::api::dialog::blocking::message(
None::<&tauri::Window>,
"Please do not run with admin permission",
"If you want to use Tun mode, please enable service mode instead",
);
return Ok(());
}
#[cfg(target_os = "linux")]
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");