https://bugs.freedesktop.org/show_bug.cgi?id=86088
Bug ID: 86088
Summary: libreoffice start script fails due to symlink
Product: LibreOffice
Version: 4.1.6.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Libreoffice
Assignee: [email protected]
Reporter: [email protected]
I'm running openSuSE 13.1 in a recent install.
Invoking libreoffice in a bash window produces this error message:
> libreoffice
/usr/lib64/qt4/bin/libreoffice: line 49: cd: ../lib64/libreoffice/program: No
such file or directory
/usr/lib64/qt4/bin/libreoffice: line 156: /usr/lib64/qt4/bin/oosplash: No such
file or directory
>
Here are the relevant lines of the libreoffice script:
41 # resolve installation directory
42 sd_cwd=`pwd`
43 sd_res=$0
44 while [ -h "$sd_res" ] ; do
45 cd "`dirname "$sd_res"`"
46 sd_basename=`basename "$sd_res"`
47 sd_res=`ls -l "$sd_basename" | sed "s/.*$sd_basename -> //g"`
48 done
49 cd "`dirname "$sd_res"`"
Here's what happening:
I invoke the program as "libreoffice".
Based on my path, the $0 variable in line 43 is
"/usr/lib64/qt4/bin/libreoffice".
At that location is a symlink to "../lib64/libreoffice/program/soffice",
so $sd_res is set to "../lib64/libreoffice/program".
The cd command in line 49 evaluates this relative to my home directory, so the
command fails.
If I change the symlink to "/usr/lib64/libreoffice/program/soffice", the fail
behavior goes away.
Thanks to all.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs