[Slackbuilds-users] [libreoffice] The lack of symlinks loxxx prevent opening of documents with Xfe
Sebastien BALLET
slacker6896 at gmail.com
Sat Jan 6 15:56:42 UTC 2018
Hello,
It seems you didn't applied the patch I sent properly. The symlinks are
created in / instead of /usr/bin :
$ cat /tmp/SBo/package-libreoffice/install/doinst.sh|grep lo[a-z]
( cd . ; rm -rf loimpress )
( cd . ; ln -sf ../../opt/libreoffice5.4/program/simpress loimpress )
( cd . ; rm -rf lowriter )
( cd . ; ln -sf ../../opt/libreoffice5.4/program/swriter lowriter )
( cd . ; rm -rf lomath )
( cd . ; ln -sf ../../opt/libreoffice5.4/program/smath lomath )
( cd . ; rm -rf lodraw )
( cd . ; ln -sf ../../opt/libreoffice5.4/program/sdraw lodraw )
( cd . ; rm -rf localc )
( cd . ; ln -sf ../../opt/libreoffice5.4/program/scalc localc )
( cd . ; rm -rf lobase )
( cd . ; ln -sf ../../opt/libreoffice5.4/program/sbase lobase )
That's because you put the commands 'ln ...' after the command 'cd -' :
$ grep -A 7 -B 10 Xfe libreoffice.SlackBuild
# Create symlinks in /usr/bin to actual binaries
cd $PKG/usr/bin
for FILE in \
sbase scalc sdraw simpress smath soffice swriter unopkg ; do
rm -f $FILE
ln -sf ../../opt/libreoffice$SRCSHORT/program/$FILE $FILE ;
done
*cd -* # <=== Error: This should be run after the ln commands below
# The symlinks below are required to (directly) open documents
# supported by libreoffice with Xfe file manager.
ln -sf ../../opt/libreoffice$SRCSHORT/program/sbase lobase
ln -sf ../../opt/libreoffice$SRCSHORT/program/scalc localc
ln -sf ../../opt/libreoffice$SRCSHORT/program/sdraw lodraw
ln -sf ../../opt/libreoffice$SRCSHORT/program/simpress loimpress
ln -sf ../../opt/libreoffice$SRCSHORT/program/smath lomath
ln -sf ../../opt/libreoffice$SRCSHORT/program/swriter lowriter
--
SeB
2018-01-05 23:56 GMT+01:00 Willy Sudiarto Raharjo <willysr at slackbuilds.org>:
> > Xfe file manager includes file associations to open documents supported
> by
> > libreoffice with programs named: lobase, localc, lodraw, loimpress,
> lomath
> > and lowriter.
> >
> > However, the libreoffice package (the one which repackage official
> binary)
> > does not include binaries/symlinks/wrappers with those names, which force
> > user to create new file associations to be able to directly open
> documents
> > supported by libreoffice with Xfe.
> >
> > The patch below (also in attachment) fixes this issue:
>
> Thanks
> i have applied it on my branch
>
>
> --
> Willy Sudiarto Raharjo
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180106/8c786e0a/attachment.html>
More information about the SlackBuilds-users
mailing list