// Prevents additional console window on Windows in release, DO NOT REMOVE!! #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] #[cfg(target_os = "macos")] mod macos_webview; fn main() { // Started by `ssh` / `git` as their askpass program: answer and exit, no UI. if let Some(code) = ide_ssh::askpass::run_helper() { std::process::exit(code); } // A portable install's `openidea.properties` moves the data directories. ide_host::data_dirs::load_properties_file(); #[cfg(target_os = "macos")] macos_webview::ensure_modern_webkit(); openidea_lib::run() }