From a838318b317031c1785686f3ba4b6c7cf3e4a0a9 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 8 May 2015 20:59:15 -0400 Subject: [PATCH] unset resources path on linux in embedding crate this blocked execution on linux due to bad paths --- ports/cef/core.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ports/cef/core.rs b/ports/cef/core.rs index 02f884e3c71..c3b16cf9a50 100644 --- a/ports/cef/core.rs +++ b/ports/cef/core.rs @@ -27,15 +27,6 @@ static CEF_API_HASH_PLATFORM: &'static [u8] = b"6813214accbf2ebfb6bdcf8d00654650 #[cfg(target_os="linux")] static CEF_API_HASH_PLATFORM: &'static [u8] = b"2bc564c3871965ef3a2531b528bda3e17fa17a6d\0"; -#[cfg(target_os="linux")] -fn resources_path() -> Option { - Some("../../servo/resources".to_owned()) -} - -#[cfg(not(target_os="linux"))] -fn resources_path() -> Option { - None -} #[no_mangle] pub extern "C" fn cef_initialize(args: *const cef_main_args_t, @@ -77,7 +68,7 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t, temp_opts.headless = false; temp_opts.hard_fail = false; temp_opts.enable_text_antialiasing = true; - temp_opts.resources_path = resources_path(); + temp_opts.resources_path = None; opts::set(temp_opts); return 1