feat: implement system utilities API

This commit introduces new system message schemas and corresponding commands for managing applications, including fetching applications, getting the default application, retrieving the frontmost application, showing an application in Finder, and trashing files.
This commit is contained in:
ByteAtATime 2025-06-23 18:12:52 -07:00
parent 418c23cb0a
commit 9c1ee6efe4
No known key found for this signature in database
9 changed files with 358 additions and 101 deletions

View file

@ -9,6 +9,7 @@ mod extensions;
mod filesystem;
mod oauth;
mod quicklinks;
mod system;
use crate::{app::App, cache::AppCache};
use browser_extension::WsState;
@ -191,7 +192,12 @@ pub fn run() {
quicklinks::list_quicklinks,
quicklinks::update_quicklink,
quicklinks::delete_quicklink,
quicklinks::execute_quicklink
quicklinks::execute_quicklink,
system::get_applications,
system::get_default_application,
system::get_frontmost_application,
system::show_in_finder,
system::trash
])
.setup(|app| {
let app_handle = app.handle().clone();
@ -211,4 +217,4 @@ pub fn run() {
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
}