I wanted to try out the LibreOffice Math. When I checked the Ubuntu Software, it was shown as it was already installed, so I tried to search for it in the menu and it was not shown, but the other LibreOffice products were present in the menu. I tried uninstalling and reinstalling it using the Ubuntu Software and also using the Terminal but it still was not visible. Is there any solution for this?
I'm using Ubuntu 20.04
95 Answers
Math is a component of LibreOffice that serves to create mathematical formulas. It is usually used from within another LibreOffice document. Because it is rarely used on its own, Ubuntu developers opted not to show it by default in the Application menu.
If you wish, you can reveal it in your own application menu as follows:
- Copy the
/usr/share/applications/libreoffice-math.desktopfile to the folder.local/share/applications..localis a hidden folder in your home folder. - Open the copy,
~/.local/share/applications/libreoffice-math.desktop, in a text editor. - Find the line
NotShowIn=GNOME;. Put a comment character,#, in front of the line or delete the line. - Save the file and close the editor.
After saving that file, the item for Math will, after a short while, be shown in your menu.
6Since the author is new to Linux or not used to computers, a more detailed answer may be needed.
Go to "Other Locations", then click on "Computer". When an address starts with
/, you can start following it from here.Click on the
usrfolderYou'll now find yourself in
/usr/. Continue this way until you reach the applications folder at/usr/share/applications/. Here, right-click onlibreoffice-math.desktop, then click on "Copy". This will copy the file.Now go to "Home". This is where your files are. The address of
.localis~/.local, with~/meaning the home folder. Yours will probably have less cluster being a new installation.However, if we look around, you will find no
.localfolder. This is normal, folders starting with.are hidden to avoid the mess. Click on "Show Hidden Folders" to show them. Many folders have appeared including.local.Go to
.local/share/applications, here right-click and click on "Paste".Double-click the file
libreoffice-math.desktopand a text editor should open. Find the lineNotShowIn=GNOME;and replace it with#NotShowIn=GNOME;.Press the save button. Now you should find LibreOffice Math.
Try this:
sudo apt-get install menulibreAnd, ensure that "Hide from menus" is 'off'. If it is 'on' then 'off' it.
For those of you wondering how to perform the actions from vanadium's reply in Ubuntu:
- Open Terminal with
Ctrl + Alt + Tor open the Start Menu and type "Terminal". - Copy this command:
sudo cp /usr/share/applications/libreoffice-math.desktop .local/share/applications/ - Now go to Terminal and paste it using:
Ctrl + Shift + V, and press Enter. - Enter your password and press Enter.
- After the file copies into the specified directory, copy the next command into the Terminal and Enter it in:
sudo nano ~/.local/share/applications/libreoffice-math.desktop - With the file open in nano, use the Find function using
Ctrl + W; type "GNOME" and press Enter. - Your Terminal cursor should be blinking on this line:
NotShowIn=GNOME;. - While still in nano, press
Ctrl + Ato skip the cursor to the beginning of the line. - With the Terminal cursor at the beginning of the line, press `Shift + 3' to add a "#". This will comment-out the line. It should look like this:
#NotShowIn=GNOME;
- While on the Terminal window, inside of nano, press
Ctrl + Sto save the file. - Now press
Ctrl + Xto close nano.
Now you should be able to press your Windows key to open the App Drawer, type in "math" and see LibreOffice Math as a result as seen here:
LibreOffice Math in Ubuntu Start Menu
2Just open your terminal and execute the following command:
grep -v NotShowIn=GNOME /usr/share/applications/libreoffice-math.desktop > ~/.local/share/applications/libreoffice-math.desktopAs an explanation it shows all text but the one that has the line "NotShowIn=GNOME" and then places all that into the ~/.local/share/applications/libreoffice-math.desktop file.
This idea is originally from Matteo Italia as a comment to a previous response, but I believe this actually deserves an answer instead of a comment.