Bug 145389 - Offline help does not work when mozilla firefox installed from a snap is the default browser on linux
Summary: Offline help does not work when mozilla firefox installed from a snap is the ...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.1.2 release
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-29 21:04 UTC by roger
Modified: 2022-02-19 09:49 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roger 2021-10-29 21:04:44 UTC
Description:
On Ubuntu Linux when the default browser is Mozilla Firefox installed via a snap (i.e. firefox is /snap/bin/firefox). In LibreOffice writer when the F1 key is pressed and offline help has been setup. The Firefox browser is launched and immediately displays a file not found error, even though the file shown in the url bar is present in the filesystem (e.g file:///tmp/lu314464cuujkj.tmp/NewHelp0.html).

Work round is to remove the firefox snap, and install from the package repository.

Steps to Reproduce:
1. Launch writer
2. Press the F1 key

Actual Results:
Browser display a File Not Found (404) page.

Expected Results:
Help page is displayed in the browser.


Reproducible: Always


User Profile Reset: No



Additional Info:
Either cater for Firefox running from a snap, or document somewhere that this will not work.
Comment 1 Olivier Hallot 2022-02-18 19:24:22 UTC
LibreOffice uses XDG to send commands to desktop applications.

https://www.freedesktop.org/wiki/Software/xdg-utils/

Please post here the output of the command

xdg-settings get default-web-browser

it should return something like "firefox.desktop" or more generally "<browser>.desktop".

to double check:

sudo xdg-settings check default-web-browser firefox.desktop
Comment 2 roger 2022-02-19 09:27:58 UTC
Sorry I no longer have a system with Firefox installed from a snap.

My current shows default-web-browser as firefox.desktop.

Feel free to close this bug.
Comment 3 Dieter 2022-02-19 09:49:53 UTC
(In reply to roger from comment #2)
> Feel free to close this bug.

=> RESOLVED INSUFFICIENTDATA