leamas / manual_pi

Off line opencpn manuals plugin
GNU General Public License v3.0
0 stars 1 forks source link

Does not open the manual on macOS #3

Open nohal opened 2 hours ago

nohal commented 2 hours ago

It looks like a possible bug in wxLaunchDefaultBrowser, but the manual is not being open on macOS with the following log messages

08:25:34.891 MESSAGE base_platform.cpp:285 PlugInManager: using data dir: /Users/nohal/Library/Application Support/OpenCPN/Contents/SharedSupport/plugins/manual_pi
08:25:34.892   ERROR utilscmn.cpp:1140 Failed to open URL "file:///Users/nohal/Library/Application Support/OpenCPN/Contents/SharedSupport/plugins/manual_pi/doc/index.html" in default browser. (error 2: No such file or directory)
08:25:44.892 MESSAGE base_platform.cpp:273 PlugInManager: Using data dirs from: /Applications/OpenCPN.app/Contents/SharedSupport/plugins;/Users/nohal/Library/Application Support/OpenCPN/Contents/SharedSupport/plugins;/Applications/OpenCPN.app/Contents/PlugIns
08:25:44.895 MESSAGE base_platform.cpp:285 PlugInManager: using data dir: /Users/nohal/Library/Application Support/OpenCPN/Contents/SharedSupport/plugins/manual_pi
08:25:44.896   ERROR utilscmn.cpp:1140 Failed to open URL "file:///Users/nohal/Library/Application Support/OpenCPN/Contents/SharedSupport/plugins/manual_pi/doc/index.html" in default browser. (error 36: Operation now in progress)

We can probably work it around by executing open "/Users/nohal/Library/Application Support/OpenCPN/Contents/SharedSupport/plugins/manual_pi/doc/index.html" on macOS instead.

leamas commented 2 hours ago

Have you time to look at it? Still missing a usable MacOS VM...