Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

Merge remote-tracking branch 'upstream/main' into fix-642-open-links

vangel7615bf7f9f48c8
diff --cc apps/filmcraft/Cargo.toml
index ee774c861,dc9b1c472..85175489d
--- a/apps/filmcraft/Cargo.toml
+++ b/apps/filmcraft/Cargo.toml
@@@ -32,10 -32,10 +32,12 @@@ serde_json = { workspace = true
log = { workspace = true }
rfd = { workspace = true }
cpal = "0.16"
+ # Files and images on the system clipboard for Paste (#611); egui already uses it for text.
+ arboard = "3"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
sys-locale = "0.3"
+# Help menu / About / Discord links in the system browser (MIT; as PhotoCraft).
+open = "5"
[dev-dependencies]
glob = "0.3"
diff --cc apps/filmcraft/src/main.rs
index 96a12a786,646c22bac..591bc00fb
--- a/apps/filmcraft/src/main.rs
+++ b/apps/filmcraft/src/main.rs
@@@ -237,10 -237,7 +237,11 @@@ fn main() -> eframe::Result
app.hooks.pick_folder_at =
Some(Box::new(|dir: &str| rfd::FileDialog::new().set_directory(dir).pick_folder().map(|p| p.to_string_lossy().into_owned())));
app.hooks.open_path = Some(Box::new(open_path));
+ // Help menu, About and Discord links (#642): eframe is built without its `links`
+ // feature, so `ctx.open_url` does nothing on the desktop. Detached, so a launcher
+ // that waits for the browser never freezes the UI.
+ app.hooks.open_url = Some(Box::new(|url: &str| open::that_detached(url).map_err(|e| e.to_string())));
+ app.hooks.clipboard_media = Some(Box::new(clipboard_media));
// Settings ▸ General ▸ Interface Language ▸ System Language (#218).
app.hooks.cursor_screen_position = Some(Box::new(filmcraft_platform::cursor::cursor_screen_position));
app.hooks.system_languages = Some(Box::new(|| sys_locale::get_locales().collect()));