ui/cocoa: Update path to docs in build tree
PATCH 1/1 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 <[email protected]>
--- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ui/cocoa.m +1 -1
@@ -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; NSURL *full_file_url;
Signature · 1 line
2.29.2
Quoted 25 lines · Roman Bolshakov
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 <[email protected]>--- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)ui/cocoa.m +1
-1@@ -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; NSURL *full_file_url;Signature · 1 line
2.29.2
Forgot to add:
Reported-by Peter Maydell <[email protected]>
-Roman
Peter Maydell
AppliedQuoted 9 lines · Roman Bolshakov
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 <[email protected]>--- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to target-arm.next, thanks.
-- PMM