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

Bug #1437235 reported by Krister on 2015-03-27
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
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)

Krister (thekswenson) wrote :
Launchpad Janitor (janitor) wrote :

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

Changed in libreoffice (Ubuntu):
status: New → Confirmed

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.

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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers