Hagar Delest wrote:You can add the following line and it should disappear from the "Other" menu.
Categories=Application;Office;
It worked for soffice. It didn't work for the similar "desktop entry I made for swriter.
I fiddled about with the files etc and now it works for swriter and not for soffice. The swriter entry appears in the Office menu with the name OpenOfficeWriter and the soffice entry appears in the Other menu with the name OpenOffice.desktop
The two desktop entry files in .local/share/applications currently contain:
1) soffice file:
[Desktop Entry]
Exec=/opt/openoffice4/program/soffice
Icon=/opt/openoffice4/program/logo.png
Name=OpenOffice
Terminal=false
Type=Application
Version=4
Categories=Application:Office;
2) the similar one I made for swriter:
[Desktop Entry]
Exec=/opt/openoffice4/program/swriter
Icon=/opt/openoffice4/program/logo.png
Name=OpenOfficeWriter
Terminal=false
Type=Application
Version=4
Categories=Application;Office;
Notes:
1) Something had added the following line to the end of the files last time I'd written them:
Name[en_GB]=openofficeWriter
2) Editing the current "Name=xxx" line to "Name[en_GB]=xxx" means the program doesn't appear in any menu.
3) The last word in the current files (ie Office") appears highlighted in red in my text editor. Changing it to "office" - ie lower case, takes away the highlighting and it may still work.
4) The OpenOfficeWriter.desktop file has retained its extension but the soffice one is simply called Openoffice, can be renamed OpenOffice.desktop but is inclined to revert to being extensionless.
5) Earlier today I clicked on the desktop icon I now have for oo writer. I got a message asking (and I paraphrase), Do you trust this?, and on clicking yes, it too suddenly got the seagulls icon.
6) While typing these points, the line: "Name[en_GB]=OpenOffice.desktop" has again been added to the end of the soffice file but not to the swriter one.
7) I'm very happy with the result you've helped me achieve. It is for someone else and is better than I expected. He uses desktop shortcuts instead of the menus so it is a good result, however if you are able to make sense of these notes and gild the lily, I'll continue. Thankyou.