Description of problem: The menu items for starting OpenOffice.org components are in Red Hat->Office->More Office Applications, instead of Red Hat->Office. Version-Release number of selected component (if applicable): openoffice.org-1.1.0-1
Actual bug was that redhat-menus was not in the BuildRequires section of the specfile, so the build farm here at Red Hat didn't install it, and therefore there were no .desktop files to package up in the RPM. Will be fixed in 1.1.0-3.
*** Bug 106740 has been marked as a duplicate of this bug. ***
*** Bug 106967 has been marked as a duplicate of this bug. ***
*** Bug 106989 has been marked as a duplicate of this bug. ***
*** Bug 107126 has been marked as a duplicate of this bug. ***
To get the menu items in Gnome one has to either run /usr/lib/openoffice/setup or launch oowriter from a console. However, though this adds the entries to the Gnome desktop menu, *but* they do not get added to the KDE menus.
*** Bug 107520 has been marked as a duplicate of this bug. ***
*** Bug 107509 has been marked as a duplicate of this bug. ***
I propose openoffice install global applnk/mimelnk/icons, and disable local installations of these files. Add/modify to specfile to inclue: ################################################ ## APPLNK # patch kde's applnk files pushd %{buildroot}%{_libdir}/openoffice/share/kde/net perl -pi -e 's@.xpm@@g' *.desktop popd # desktop-file case %if "%{?desktop_file}" == "1" mkdir -p %{buildroot}%{_datadir}/applications for i in openoffice-printeradmin openoffice-setup \ redhat-drawing redhat-math redhat-presentations redhat-word-processor \ redhat-spreadsheet; do ln -sf %{_datadir}/desktop-menu-patches/$i.desktop %{buildroot}%{_datadir}/applications/$i.desktop done rm -rf %{buildroot}%{_datadir}/applnk rm -rf %{buildroot}%{_datadir}/gnome %else # non-desktop-file case mkdir -p "%{buildroot}/%{_sysconfdir}/X11/applnk/Office/OpenOffice.org %{version}/" cp -alf %{buildroot}%{_libdir}/openoffice/share/kde/net/*.desktop \ "%{buildroot}/%{_sysconfdir}/X11/applnk/Office/OpenOffice.org %{version}/" %endif ## ICONS # Extract 48x48 PNGs for use by GNOME and Nautilus # (Nautilus needs pngs under %{_datadir}/pixmaps) mkdir -p %{buildroot}%{_datadir}/pixmaps tar --directory %{buildroot}%{_datadir}/pixmaps/ -xjvf %{SOURCE4} # KDE mkdir -p %{buildroot}%{_datadir}/icons cp -alf %{buildroot}%{_libdir}/openoffice/share/kde/net/share/icons/* \ %{buildroot}%{_datadir}/icons/ ## MIME-types # KDE mkdir -p %{buildroot}%{_datadir}/mimelnk # copy to global location cp -af %{buildroot}%{_libdir}/openoffice/share/kde/net/share/mimelnk/* \ %{buildroot}%{_datadir}/mimelnk/ ## Fix instdb.ins, to *not* install local copies of these for entry in Kdeapplnk Kdemimetext Kdeicons Gnome_Apps Gnome_Icons Gnome2_Apps; do perl -pi -e "/^File gid_File_Extra_$entry/ .. /^End/ and (\ s|^\tSize\s+\= .*|\tSize\t\t = 0;\r| or \ s|^\tArchiveFiles\s+\= .*|\tArchiveFiles\t = 0;\r| or \ s|^\tArchiveSize\s+\= .*|\tArchiveSize\t = 0;\r| or \ s|^\tContains\s+\= .*|\tContains\t = ();\r| or \ s|\t\t\t\t\t\".*|\r|g)" \ %{buildroot}%{_libdir}/openoffice/program/instdb.ins done ###################################3 Then add to %files: # applnk files %if "%{?desktop_file}" == "1" %{_datadir}/applications/* %else %{_sysconfdir}/X11/applnk/Office %endif # mimelnk files %{_datadir}/mimelnk/*/* # icon files %{_datadir}/pixmaps/* %{_datadir}/icons/*/*/*
Rex Dieter, your patch has largely been incorporated into 1.1.0-4. Thanks for the scripts. This bug should be fixed in 1.1.0-4, though people will need to "rm -f ~/.gnome2/vfolders/applications/ooo645*.desktop" to remove the duplicate entries. Dan