LO 5.1 Presentation can't find system browser on OSX 10.11

Clicking on a live link in a LO 5.1 Presentation results in the
following error message:

"LibreOffice could not find a web browser on your system. Please check
your Desktop Preferences or install a web browser (for example, Firefox)
in the default location requested during the browser installation."

In fact Firefox is set as default and doing a command click on a link
from Writer works fine.

I found that this appears to be identified as a problem with OpenOffice,
but as yet can find no confirmation as to LibreOffice usage, or whether
this might be a bug.

From looking at the code (shell/source/unix/exec/shellexec.cxx, sfx2/source/appl/openuriexternally.cxx) that error message can misleadingly be presented also when a browser /is/ found, but something else goes wrong when trying to open the hyperlink with the browser.

Marc, what is the hyerlink's exact URL? (In Impress, select the hyperlink---which is easier to do with the keyboard than with the mouse---, select "Insert > Hyperlink," and from the dialog that pops open copy the content of the "Target" field. Alternatively, you can mail me the presentation file, and I'll have a look.)

Stephan Bergmann wrote:

> > Clicking on a live link in a LO 5.1 Presentation results in the
> > following error message:
> >
> > "LibreOffice could not find a web browser on your system. Please check
> > your Desktop Preferences or install a web browser (for example, Firefox)
> > in the default location requested during the browser installation."
> >
> > In fact Firefox is set as default and doing a command click on a link
> > from Writer works fine.
>
> From looking at the code (shell/source/unix/exec/shellexec.cxx,
> sfx2/source/appl/openuriexternally.cxx) that error message can
> misleadingly be presented also when a browser /is/ found, but something
> else goes wrong when trying to open the hyperlink with the browser.

This happens, for example with a link like "htp://www....", i.e. a wrong protocol identifier.

Aha - you nailed it on the head. The person who built the document used
an internal file:// refernce, nd the inaccurate message popped up. When
I added a second link with the correct web URL it worked fine (though
strangely enough I could find no menu choice to allow editing the URL
that was previously there!)

The presented error message should become less misleading in LO 5.2 with <https://cgit.freedesktop.org/libreoffice/core/commit/?id=83de4879c3cd416c423dd147be6511a1d074c8c9> "Improve error message when URL cannot be opened externally".

Editing an existing hyperlink works via "Insert - Hyperlink" when you have the hyperlink selected (which is often easier to do with the keyboard than with the mouse, <https://bugs.documentfoundation.org/show_bug.cgi?id=98575> "Impress: Hard to select a hyperlink with the mouse").