From 52658886e75cd2f06fb125fcb74da5a3452275e5 Mon Sep 17 00:00:00 2001
From: GyDi <zzzgydi@gmail.com>
Date: Thu, 16 Mar 2023 23:57:34 +0800
Subject: [PATCH] fix: add target os linux

---
 src-tauri/src/cmds.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src-tauri/src/cmds.rs b/src-tauri/src/cmds.rs
index 8140b24..2e3ca84 100644
--- a/src-tauri/src/cmds.rs
+++ b/src-tauri/src/cmds.rs
@@ -177,10 +177,10 @@ pub async fn restart_sidecar() -> CmdResult {
 
 #[tauri::command]
 pub fn grant_permission(core: String) -> CmdResult {
-    #[cfg(target_os = "macos")]
+    #[cfg(any(target_os = "macos", target_os = "linux"))]
     return wrap_err!(manager::grant_permission(core));
 
-    #[cfg(not(target_os = "macos"))]
+    #[cfg(not(any(target_os = "macos", target_os = "linux")))]
     return Err("Unsupported target".into());
 }
 
-- 
GitLab