libreoffice fails to launch due to symlink /usr/bin/X11/libreoffice

Bug #1437235 reported by Krister Swenson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I can no longer open files from nautilus with libreoffice.
Double-clicking on a file does nothing for example.

Trying to open libreoffice from the commandline gives the following:
=> libreoffice
/usr/bin/X11/libreoffice: 54: cd: can't cd to ../lib/libreoffice/program
/usr/bin/X11/libreoffice: 163: exec: /usr/bin/X11/oosplash: not found

The problem is that I have "/usr/bin/X11" in my PATH before "/usr/bin".
The command "/usr/bin/libreoffice" works.

I'm wondering why libreoffice is installed in "/usr/bin/X11"?

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: libreoffice 1:4.3.3-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-33.44-generic 3.16.7-ckt7
Uname: Linux 3.16.0-33-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Mar 27 10:48:35 2015
InstallationDate: Installed on 2014-10-13 (165 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140923)
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Krister Swenson (thekswenson) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
Frank Lee (w-launchpad-net-franklee-co-uk) wrote :

Suggested fix: alter the symlink /usr/bin/libreoffice from ../lib/libreoffice/program/soffice to /usr/lib/libreoffice/program/soffice and the symlink /usr/bin/soffice from ../lib/libreoffice/program/soffice to /usr/lib/libreoffice/program/soffice - i.e. convert from relative to absolute paths.

Revision history for this message
Olivier Tilloy (osomon) wrote :

> I'm wondering why libreoffice is installed in "/usr/bin/X11"?

/usr/bin/X11 is a symlink to /usr/bin (created by x11-common):

$ ls -l /usr/bin/X11
lrwxrwxrwx 1 root root 1 juil. 2 2016 /usr/bin/X11 -> .

That means that every binary in /usr/bin/X11 is also in /usr/bin, so you should be able to remove /usr/bin/X11 from your PATH.

Changed in libreoffice (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.