FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge branch 'main' into fix/linux-dev-desktop-icon
user.emaild8ef953f166a
diff --cc apps/filmcraft/src/main.rsindex f60ad8267,18fb4d7b0..90189b474--- a/apps/filmcraft/src/main.rs+++ b/apps/filmcraft/src/main.rs@@@ -24,8 -27,9 +27,11 @@@ mod argsmod audio;mod audio_in;mod control_server;+#[cfg(target_os = "linux")]+mod dev_icon;+ #[cfg(any(target_os = "windows", test))]+ mod graphics;+ mod logging;#[cfg(target_os = "macos")]mod native_menu;mod window_raise;@@@ -85,12 -91,24 +93,26 @@@ fn main() -> eframe::Resultstd::process::exit(2);}};+ let log_dir = data_dir.clone().or_else(default_data_dir).map(|d| d.join(logging::LOG_DIR));+ log::info!("FilmCraft {} ({} {})", env!("CARGO_PKG_VERSION"), std::env::consts::OS, std::env::consts::ARCH);+ // The log file lives next to the crash logs; opened after the arguments, so `--help`,+ // `--version` and usage errors leave no file behind. Records logged until now go in first.+ if let Some(logger) = logger {+ match log_dir.as_deref().map(|d| logger.attach_dir(d)) {+ Some(Ok(path)) => log::info!("log file {}", path.display()),+ Some(Err(e)) => log::warn!("no log file: {e}"),+ None => {+ logger.stderr_only();+ log::warn!("no log file: no data directory (set FILMCRAFT_DATA_DIR or --data-dir)");+ }+ }+ }app_nap::disable();+ #[cfg(target_os = "linux")]+ dev_icon::ensure_dev_desktop_entry();// Panics anywhere go to <data dir>/Logs/crash-<day>.log with a backtrace; the UI pass and// frame workers catch them and keep running (see filmcraft_ui_egui::crash).- filmcraft_ui_egui::crash::install(data_dir.clone().or_else(default_data_dir).map(|d| d.join("Logs")));+ filmcraft_ui_egui::crash::install(log_dir);// OS hardware video decoders (VideoToolbox on macOS) in front of our own; Settings ▸ Playback ▸// Hardware decoding switches them off. Unsupported streams and failures use our decoders.register_hardware_decoders();diff --cc contributors/people.tomlindex 77d991e7b,25cf020eb..530ee7ef4--- a/contributors/people.toml+++ b/contributors/people.toml@@@ -22,7 -22,21 +22,26 @@@ real_name = "Brandon Thomasdisplay_name = "Brandon Thomas"sync_github_name = false+[people.ahmedhosnypro]+real_name = "Ahmed Hosny"+display_name = "Ahmed Hosny"+sync_github_name = false+++ [people.sanyamsingh001]+ display_name = "sanyamsingh001"+ sync_github_name = false++ [people.switch87]+ real_name = "Gert Pellin"+ display_name = "Gert Pellin"+ sync_github_name = false++ [people.swillunderscore]+ display_name = "Swill Software"+++ [people.IppSec]+ sync_github_name = true++ [people.ItzBloxy]+ display_name = "Bloxy"