mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-09-12 17:06:26 +00:00
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:
parent
418c23cb0a
commit
9c1ee6efe4
9 changed files with 358 additions and 101 deletions
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue