Skip to content
Merged
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
14 changes: 14 additions & 0 deletions src/app/apps.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! This modules handles the logic for each "app" that rustcast can load
//!
//! An "app" is effectively, one of the results that rustcast returns when you search for something
use std::path::Path;

use iced::{
Alignment, Background,
Length::Fill,
Expand All @@ -11,6 +13,7 @@ use iced::{
use crate::{
app::{Message, RUSTCAST_DESC_NAME},
commands::Function,
utils::handle_from_icns,
};

/// The main app struct, that represents an "App"
Expand Down Expand Up @@ -61,6 +64,17 @@ impl App {
name: format!("RustCast Version: {app_version}"),
name_lc: "version".to_string(),
},
App {
open_command: Function::OpenApp(
"/System/Library/CoreServices/Finder.app".to_string(),
),
desc: RUSTCAST_DESC_NAME.to_string(),
icons: handle_from_icns(Path::new(
"/System/Library/CoreServices/Finder.app/Contents/Resources/Finder.icns",
)),
name: "Finder".to_string(),
name_lc: "finder".to_string(),
},
]
}

Expand Down