The existing port symlinks /usr/local/share/applications/openoffice-4.1.5 to ../../openoffice-4.1.5/openoffice4/share/xdg . This does not work for Plasma 5 desktop since it has been changed to ignore symlinks. See https://git.reviewboard.kde.org/r/129733/ for details. The port should be changed to copy .desktop file lo sub-directory within /usr/local/share/applications/ instead to avoid this kind of issues in the future, IMHO.
Created attachment 193124 [details] Proposed patch
A commit references this bug: Author: truckman Date: Tue Jun 12 03:55:02 UTC 2018 New revision: 472229 URL: https://svnweb.freebsd.org/changeset/ports/472229 Log: Instead of symlinking the directory containing the OpenOffice .desktop files under $PREFIX/share/applications, symlink the individual .desktop files. This is what upstream does on Linux and what LibreOffice does as well. The Plasma 5 desktop ignores symlinks to directories when it is scanning for .desktop files. PR: 228030 Reported by: kan@FreeBSD.org Changes: head/editors/openoffice-4/Makefile
A commit references this bug: Author: truckman Date: Tue Jun 12 04:00:08 UTC 2018 New revision: 472230 URL: https://svnweb.freebsd.org/changeset/ports/472230 Log: Upgrade to Apache OpenOffice trunk SVN revsion r1833124. This includes the bug fix in extra-patch-align16 needed for amd64. [1] Instead of symlinking the directory containing the OpenOffice .desktop files under $PREFIX/share/applications, symlink the individual .desktop files. This is what upstream does on Linux and what LibreOffice does as well. The Plasma 5 desktop ignores symlinks to directories when it is scanning for .desktop files. PR: 228030 [1] Reported by: kan Changes: head/editors/openoffice-devel/Makefile head/editors/openoffice-devel/distinfo head/editors/openoffice-devel/files/extra-patch-align16