From: Roman Bolshakov Date: Fri, 8 Jan 2021 21:38:15 +0000 (+0300) Subject: ui/cocoa: Update path to docs in build tree X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8d6fda8c1072fbed2d030c34a5233f17913a3ba9;p=qemu.git ui/cocoa: Update path to docs in build tree QEMU documentation can't be opened if QEMU is run from build tree because executables are placed in the top of build tree after conversion to meson. Signed-off-by: Roman Bolshakov Reported-by: Peter Maydell Message-id: 20210108213815.64678-1-r.bolshakov@yadro.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- diff --git a/ui/cocoa.m b/ui/cocoa.m index f32adc3074..e913a51445 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1176,7 +1176,7 @@ QemuCocoaView *cocoaView; - (void) openDocumentation: (NSString *) filename { /* Where to look for local files */ - NSString *path_array[] = {@"../share/doc/qemu/", @"../doc/qemu/", @"../docs/"}; + NSString *path_array[] = {@"../share/doc/qemu/", @"../doc/qemu/", @"docs/"}; NSString *full_file_path; /* iterate thru the possible paths until the file is found */