Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 505868

Summary: app-office/openoffice-bin: Start scripts break opening of files
Product: Gentoo Linux Reporter: Hanno Böck <hanno>
Component: Current packagesAssignee: Chí-Thanh Christopher Nguyễn <chithanh>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hanno Böck gentoo-dev 2014-03-26 11:15:56 UTC
The wrapper scripts in the openoffice-bin package (oowriter, oocalc, ooimpress etc.) look like this:
#!/usr/bin/env bash
pushd "/usr/lib64/openoffice/program" > /dev/null
./simpress "$@"
popd > /dev/null

What this causes is that it's not possible to open files with relativ paths. E.g. just typing on the command line "oowriter test.odt" will fail.

I see no reason to do this weird pushd/popd-stuff. Replacing the wrapper with this version fixes it:
#!/usr/bin/env bash
/usr/lib64/openoffice/program/simpress "$@"

It's not possible to use a simple symlink because the called start scripts check for their path to find their executables.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-04-07 15:59:25 UTC
AFAIR these scripts were never intended for that purpose. Use the ooffice wrapper for that.

But I will address this issue in 4.1.0.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-05-05 23:02:23 UTC
+  05 May 2014; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+  +openoffice-bin-4.1.0.ebuild:
+  Version bump, make wrapper script work with relative paths, bug #505868.