[Libreoffice-bugs] [Bug 108591] New: xdg-open path is hardcoded

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 17 16:16:35 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=108591

            Bug ID: 108591
           Summary: xdg-open path is hardcoded
           Product: LibreOffice
           Version: 5.3.0.3 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: lvernschrock at gmail.com

Description:
Ideally, LibreOffice would look in the PATH for xdg-open and use it if found.

If it can't find it in the PATH nor at /usr/bin/xdg-open, then it should
display a reasonable error message via the GUI. Something like:
"LibreOffice needs xdg-open to open links, but could not find it." 

This causes a problem for NixOS which doesn't install software under /usr, but
uses symlinks to added packages to the PATH. I suppose this could also be a
problem on other *nix distributions if a non-root user wants to use a custom
xdg-open by adding it to a folder in the PATH before /usr/bin.

(I put the earliest version affected to 5.3.0.3 since that is the earliest I've
tested, but I'm sure the problem exists in earlier versions as well.)

Steps to Reproduce:
1. Place xdg-open somewhere in your PATH, but not in /usr/bin/xdg-open
2. Launch LibreOffice Calc from a terminal emulator
3. Type a URL in a cell and hit the enter key
4. Hold down Ctrl and click the link.

Actual Results:  
In the terminal emulator, the following message prints:
sh: /usr/bin/xdg-open: No such file or directory

No message is displayed to the user.

Expected Results:
LibreOffice should find xdg-open and use it to open the link, causing your
default browser to pop up and load the page.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101
Firefox/53.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170617/d0375327/attachment.html>


More information about the Libreoffice-bugs mailing list