Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/src-tauri/capabilities/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"updater:default",
"allow-core-process",
"allow-workspace-files",
"allow-app-update"
]
}
13 changes: 13 additions & 0 deletions app/src-tauri/permissions/allow-workspace-files.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[permission]]
identifier = "allow-workspace-files"
description = "Allow opening, revealing, and previewing files resolved inside the active OpenHuman workspace"

[permission.commands]

allow = [
"open_workspace_path",
"reveal_workspace_path",
"preview_workspace_text",
]

deny = []
4 changes: 4 additions & 0 deletions app/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ mod webview_apis;
mod wechat_scanner;
mod whatsapp_scanner;
mod window_state;
mod workspace_paths;

#[cfg(target_os = "macos")]
use tauri::menu::{PredefinedMenuItem, Submenu};
Expand Down Expand Up @@ -3190,6 +3191,9 @@ pub fn run() {
mascot_window_hide,
file_logging::reveal_logs_folder,
file_logging::logs_folder_path,
workspace_paths::open_workspace_path,
workspace_paths::reveal_workspace_path,
workspace_paths::preview_workspace_text,
meet_call::meet_call_open_window,
meet_call::meet_call_close_window,
companion_commands::register_companion_hotkey,
Expand Down
Loading
Loading