Skip to contentSkip to conversation

ui/cocoa: Update path to docs in build tree

PATCH Applied Roman Bolshakov 2 participants 3 messages Jan 8, 2021 – Jan 12, 2021

lore
Share & tools
lore
#0 lore raw

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.

---
 ui/cocoa.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ui/cocoa.m +1 -1
index ea3b845b53..13fba8103e 100644
@@ -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
#1 lore raw
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.

---
 ui/cocoa.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ui/cocoa.m +1 -1
index ea3b845b53..13fba8103e 100644
@@ -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:

-Roman

#2 lore raw
In reply to Roman Bolshakov
Quoted 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.

---
 ui/cocoa.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to target-arm.next, thanks.

-- PMM