Bug 132387 - When installing the latest LO 7.0, the Debian start menu shortcuts/links for LO 6.1 disappear
Summary: When installing the latest LO 7.0, the Debian start menu shortcuts/links for ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-24 21:29 UTC by Bart
Modified: 2020-04-26 20:35 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
1-AfterDebianInstallation.png (79.63 KB, image/png)
2020-04-24 21:31 UTC, Bart
Details
2-AfterLibreOffice7Installation.png (68.09 KB, image/png)
2020-04-24 21:32 UTC, Bart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bart 2020-04-24 21:29:57 UTC
Description:
LibreOffice is one of the applications that's included in the Linux/Debian10 installation. After the installation, Debian has menu shortcuts/links to LibreOffice 6.1 under:
   Start -> Office

When installing LibreOffice 7.0, those shortcuts/links disappear. This didn't happen with the previous LibreOffice 7.0 installation.

Steps to Reproduce:
After the Linux/Debian10 installation the Debian menu shows shortcuts/links for  LibreOffice 6.1.5.2 under:
  Start -> Office
This is attachment "1-AfterDebianInstallation.png"

Then I install LibreOffice 7.0 Alpha (as of Apr. 18, 2020). To do this I follow the steps on:
   https://wiki.documentfoundation.org/Development/Linux_Build_Dependencies
   https://wiki.documentfoundation.org/Development/BuildingOnLinux

(BTW, many thanks to the person who put these instructions there. Without those instructions I would not have known how to install LibreOffice 7 alpha.)

Actual Results:
After installing LibreOffice 7.0 alpha, only one LibreOffice 6.1 shortcut/link is left. This is also attachment "2-AfterLibreOffice7Installation.png"

When I click the remaining shortcut/link, nothing happens.

Expected Results:
I had expected that the shortcuts/links in the Debian menu for LibreOffice 6.1 would be still there. When installing the previous LibreOffice 7.0 alpha version, the shortcuts/links for LibreOffice 6.1 and LibreOffice 6.4 were still there in the Debian start menu.


Reproducible: Always


User Profile Reset: No



Additional Info:
I decided to check at which point the menu shortcuts/links were removed. I hope that this information is useful for the developers to correct it.

To get my menu shortcuts/links back I first installed Linux/Debian10 again. Then I installed LibreOffice 7.0 again. The Debian menu shortcuts/links for LibreOffice 6.1 disappeared after the next command:

   $ sudo apt-get build-dep libreoffice 

(I included more details further down.)

This happens when I install:
   Version: 7.0.0.0.alpha0+
   Build ID: 02f7d20f14dffcb3832264eeab5bb97acc4977f3

This didn't happen when I installed:
   Version: 7.0.0.0.alpha0+
   Build ID: 35feeefef569572f1443446912124247378c3a0e

For regular work I sometimes need to go back to a stable LibreOffice version. To get the  LibreOffice menu shortcuts/links back, I installed Linux/Debian yet again. (Nope, I'm not complaining.) 

If the effect of installing LibreOffice 7.0 alpha is that my Debian menu shortcuts/links disappear, then that makes me hesitant to install that alpha version again.

Nevertheless, my appreciation goes to all the people who are putting their time and effort into developing LibreOffice.

				~~~

Here are the commands that I used to install LibreOffice 7.0:

$ sudo apt-get install git ccache junit4 gstreamer1.0-libav libkrb5-dev nasm graphviz libpython3-dev

$ sudo apt-get update

$ sudo apt-get build-dep libreoffice 
  (After this command, most of the LibreOffcie 6.1 shortcuts/links are gone)

$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test

$ gcc --version 
  (this returns version 8.3.0)

$ git clone https://gerrit.libreoffice.org/core libreoffice
  (For reference, this command took 01:20 hours to complete.)

$ cd libreoffice 

$ ./autogen.sh

$ make
  (This command took 4:05 hours to complete.)

$ instdir/program/soffice --writer

The last command starts LibreOffice writer and that gives me version:

Version: 7.0.0.0.alpha0+
Build ID: 02f7d20f14dffcb3832264eeab5bb97acc4977f3
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

The stable version of LibreOffice that normally I use is:

Version: 6.1.5.2
Build ID: 1:6.1.5-3+deb10u5
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group threaded

The previous LibreOffice 7.0 alpha version worked as expected. It's:

Version: 7.0.0.0.alpha0+
Build ID: 35feeefef569572f1443446912124247378c3a0e
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

				~~~

PS:
- I would be really happy if the installation of LibreOffice also had a "repair" option. That would be an easier option for me to get the Debian menu shortcuts/links back. Next to that there's always the risk that a user removes a file or a directory by accident and "screws things up". I'll check if such a suggestion exists. If not, I may submit a separate suggestion. If it's not picked up, that's fine. All I can do is suggest. I assume it takes a lot of time and effort to develop a product like LibreOffice . ;-)
- I have more information about the LibreOffice 6.1 files that were missing after installing LibreOffice 7.0, but I was didn't want to make this report that detailed. Nevertheless, there's more information.
Comment 1 Bart 2020-04-24 21:31:34 UTC
Created attachment 159908 [details]
1-AfterDebianInstallation.png

This illustration shows the Debian menu shortcuts/links for LibreOffice 6.1 after installation of Debian10.
Comment 2 Bart 2020-04-24 21:32:27 UTC
Created attachment 159909 [details]
2-AfterLibreOffice7Installation.png

This illustration shows the Debian menu shortcuts/links that remain for LibreOffice 6.1 after installation of LibreOffice7.
Comment 3 Bart 2020-04-25 04:24:52 UTC
PS: I just noticed another difference. It's not "a matter of life and death":

After installing LibreOffice 7.0, the menu group
   Start -> Education
also disappeared.

In my current Linux/Debian10 installation this group contains one shortcut/link: 
   LibreOffice Math
Comment 4 Jean-Baptiste Faure 2020-04-26 16:31:44 UTC
None of the commands you cite installs LibreOffice 7.0 alpha: "make" builds the program and "instdir/program/soffice --writer" runs the build program.
Installing LibreOffice need to package it as DEBs, then run dpkg as root or with sudo.

Additionally you can't install LibreOffice 7.0 alpha because it does not exist yet. Currently the master runs under the name LibreOfficeDev (development version), not under the name LibreOffice, precisely to not overwrite the normal installed version.

To restore shortcuts for LibreOffice 6.1, you do not need to reinstall Debian. You only have to reinstall LibreOffice 6.1 itself, for example from Synaptic.

As an alternative to building LibreOfficeDev yourself, you could download an installation set from https://dev-builds.libreoffice.org/daily/master/current.html

Best regards. JBF
Comment 5 Bart 2020-04-26 18:20:40 UTC
JBF, thank you for pointing that out. 

As you suggested, I downloaded 
   master~2020-04-26_05.59.56_LibreOfficeDev_7.0.0.0.alpha0_Linux_x86-64_deb.tar
I extracted it, and I ran 
   $ sudo dpkg -i *.deb

My Debian menu now shows two sets LibreOffice shortcuts/links, one for LibreOffice 6.1, and one for LibreOfficeDev 7.0. This is gorgeous.

Many thanks!

PS:
- This allows me to check again if a suspected bug exists in the LibreOffice version that comes with Linux/Debian (the one that most regular users will use), and if it has been addressed in the latest development version.
- I changed the status to Resolved/NotABug.
Comment 6 Jean-Baptiste Faure 2020-04-26 20:35:59 UTC
Thank you.
Better status is WorksForMe.