summarylogtreecommitdiffstats
path: root/linux-integration-fixes.patch
blob: 3b16182a03156cb8fd6d483ae9d518c4ec8a23da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json
index 1111111..2222222 100644
--- a/src-tauri/capabilities/default.json
+++ b/src-tauri/capabilities/default.json
@@ -32,6 +32,9 @@
         { "path": "$HOME/Downloads/**" },
         { "path": "$HOME/Desktop/**" },
         { "path": "$RESOURCE/**" },
+        { "path": "/run/media/**" },
+        { "path": "/media/**" },
+        { "path": "/mnt/**" },
         { "path": "$TEMP/**" },
         { "path": "C:/**" },
         { "path": "D:/**" },
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 1111111..2222222 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -1,3 +1,5 @@
+#![cfg_attr(target_os = "linux", allow(dead_code))]
+
 // Module declarations
 mod commands;
 mod migrations;
@@ -578,9 +578,7 @@ fn handle_menu_event<R: tauri::Runtime>(app: &tauri::AppHandle<R>, event: tauri
 #[cfg_attr(mobile, tauri::mobile_entry_point)]
 pub fn run() {
     let mut builder = tauri::Builder::default()
-        .menu(build_app_menu)
-        .on_menu_event(handle_menu_event)
-        .plugin(tauri_plugin_os::init())
+        .plugin(tauri_plugin_os::init())
         .plugin(tauri_plugin_store::Builder::new().build())
         .plugin(tauri_plugin_fs::init())
         .plugin(tauri_plugin_dialog::init())