diff --git a/src-tauri/src/cmds.rs b/src-tauri/src/cmds.rs
index 8140b2437b5eabd578ea70db0f07c8a90614da01..2e3ca841db20183a446381a5f222047b0e66c7ea 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());
 }