diff --git a/Meta/Lagom/Contrib/MacPDF/AppDelegate.mm b/Meta/Lagom/Contrib/MacPDF/AppDelegate.mm index 5e65b5fdd0..d643020895 100644 --- a/Meta/Lagom/Contrib/MacPDF/AppDelegate.mm +++ b/Meta/Lagom/Contrib/MacPDF/AppDelegate.mm @@ -18,12 +18,12 @@ { // FIXME: Copy the fonts to the bundle or something - // Get from `Build/lagom/bin/MacPDF.app/Contents/MacOS/MacPDF` to `.`. + // Get from `Build/lagom/bin/MacPDF.app/Contents/MacOS/MacPDF` to `Build/lagom/Root/res`. NSString* source_root = [[NSBundle mainBundle] executablePath]; - for (int i = 0; i < 7; ++i) + for (int i = 0; i < 5; ++i) source_root = [source_root stringByDeletingLastPathComponent]; auto source_root_string = ByteString([source_root UTF8String]); - Core::ResourceImplementation::install(make(MUST(String::formatted("{}/Base/res", source_root_string)))); + Core::ResourceImplementation::install(make(MUST(String::formatted("{}/Root/res", source_root_string)))); } - (void)applicationWillTerminate:(NSNotification*)aNotification diff --git a/Userland/Utilities/pdf.cpp b/Userland/Utilities/pdf.cpp index 74c312e7e0..51cb99427a 100644 --- a/Userland/Utilities/pdf.cpp +++ b/Userland/Utilities/pdf.cpp @@ -223,9 +223,9 @@ static PDF::PDFErrorOr pdf_main(Main::Arguments arguments) #if !defined(AK_OS_SERENITY) if (debugging_stats || !render_path.is_empty()) { - // Get from Build/lagom/bin/pdf to Base/res/fonts. - auto source_root = LexicalPath(MUST(Core::System::current_executable_path())).parent().parent().parent().parent().string(); - Core::ResourceImplementation::install(make(TRY(String::formatted("{}/Base/res", source_root)))); + // Get from Build/lagom/bin/pdf to Build/lagom/Root/res. + auto source_root = LexicalPath(MUST(Core::System::current_executable_path())).parent().parent().string(); + Core::ResourceImplementation::install(make(TRY(String::formatted("{}/Root/res", source_root)))); } #endif