Bug 26986 - On Plasma 5, libreoffice should use his kf5 plugin integration instead of gtk3
Summary: On Plasma 5, libreoffice should use his kf5 plugin integration instead of gtk3
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-22 18:51 CEST by Aurelien Oudelet
Modified: 2020-08-23 16:55 CEST (History)
0 users

See Also:
Source RPM: libreoffice-kde5-6.4.5.2-1.mga8.src.rpm libreoffice-kf5-6.4.5.2-1.mga8.src.rpm libreoffice-gtk3-6.4.5.2-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Aurelien Oudelet 2020-07-22 18:51:19 CEST
Description of problem:
In Mageia Cauldron, (also on mga7), on Plasma 5 desktop installed, Libreoffice uses his gtk3 VCL plugin instead of plain kf5 plugin. In About Menu, you can see that Libreoffice uses a VCL GTK3_kf5. This results in a poor UI if Breeze theme is selected for GTK2/3 apps.

It seems that libreoffice-kde5-6.4.5.2-1.mga8 is not installed if Plasma 5 is main desktop. If installing it, Libreoffice gets better integration with Plasma and has better looking UI. In About menu, you can see VCL his correctly kf5.

In facts, nearly all Libreoffice packages depend on libreoffice-gtk3 integration plugin which is not a behaviour found on Kubuntu 20.04.

How reproducible: Always

Steps to Reproduce:
1. Install Mageia 7 and newer, with Plasma 5 as desktop. Update all packages.
2. Launch Libreoffice after install. In About menu: VCL plugin integration is gtk3_kf5. Poor UI.
3. Package libreoffice-kde5-6.4.5.2-1.mga8 (on Cauldron) is not installed. So install it.
4. See libreoffice uses kf5 integration and better UI on Plasma.

I wonders why there is 2 packages for KF5/Plasma 5:
libreoffice-kde5-6.4.5.2-1.mga8
libreoffice-kf5-6.4.5.2-1.mga8

Why uninstall libreoffice-gtk3-6.4.5.2-1.mga8 try uninstall all libreoffice packages? In Kubuntu, for example, the GTK3 plugin is not an absolute dependencies.
Comment 1 Lewis Smith 2020-07-22 21:52:18 CEST
Is not Kubuntu a dedicated KDE/Plasma distribution? If so, you would hardly expect to see the GTK3 plugin. The fact that all parts of LO hang on 'libreoffice-gtk3' is reasonable: it is built that way.

On my multi-desktop M8 installation, I see, running LO under Plasma
 "VCL: gtk3_kde5"
with both the following installed (not specifically by me):
 libreoffice-gtk3-6.4.5.2-1.mga8
 libreoffice-kf5-6.4.5.2-1.mga8        *** not the 'kde5' variant
It looks to me as if the query is really: "If Plasma is installed, should not libreoffice-kde5 [or kf5] also be?" (point 3). It was for me.

Can you confirm that when you installed 'libreoffice-kde5' (point 3):
- you did, or did not, uninstall libreoffice-gtk3
- that LibreOffice showed it in the About VCL panel (point 4)
- you noticed an improvement in the GUI
- did/do you have also 'libreoffice-kf5'?

CC: (none) => lewyssmith

Comment 2 Aurelien Oudelet 2020-07-22 22:55:12 CEST
I agree about Kubuntu.

To sum up, with fresh Plasma 5 on mga7 or even mga8a1, LO runs under Plasma 5 with "VCL: gtk3_kde5".
Packages installed by default are the 2 you mention: lo-gtk3 and lo-kf5.

Therefore,
When installing libreoffice-kde5:
- I can't uninstall lo-gtk3 as it will result of total removing LO.
- LO shows in About menu: "VCL: kf5"
- GUI is more beautiful (feeling personal according to me), but respect KDE Plasma buttons orders like OK / Cancel for example, Open/Save dialogs are KDE native version, Breeze theme is more visually appealing.
- I never remove the lo-kf5 variant.

In facts, I wonder if these 2 packages could be merged as they refer to more/less same backend?
Comment 3 Aurelien Oudelet 2020-07-22 23:30:59 CEST
For good understanding, in LO, VCL means for desktop integration. In fact, LO supports both gtk3 and qt to 

I think we could see this upstream bug resolved:

https://bugs.documentfoundation.org/show_bug.cgi?id=125922

Sum up: they talk about renaming with LO 6.4 VCL KDE5 into kf5.
According to comment #6, gtk3_kde5 should no longer be used.
According to comment #14, new VCL must be kf5 on Plasma 5 desktop.


I think there is a package misunderstood currently in Mageia.
Why installing lo-kf5 result of good VCL backend use "kf5" and why lo-kf5 results of use deprecated upstream gtk3_kde5? Sounds crazy.
Comment 5 Aurelien Oudelet 2020-07-23 09:48:47 CEST
(In reply to Manuel Hiebel from comment #4)
> could be related to https://bugs.mageia.org/show_bug.cgi?id=24871
> 
> http://svnweb.mageia.org/packages?view=revision&revision=1332213
According to this revision, package was rename from LO-kde4 to LO-kf5 for Mageia. All that it does is simply use of Plasma version of Open/Save file dialog, while still use GTK3 backend for GUI.

There is a new VCL available from LO 6.3 called kde5 and it has later be renamed to qt5/kf5 according to this https://bugs.documentfoundation.org/show_bug.cgi?id=125922.

Today, upstream recommends use of new VCL named kde5/qt5/kf5 on Plasma 5 / LXQT desktops environments. It seems to be provided by Mageia with the libreoffice-kde5-6.4.5.2-1.mga8 package (Package A, for later reference).

But, as I previously said, today when you select Plasma 5 (or lxqt) as desktop at installation time, it is the wrong VCL plugin which get installed (that is named libreoffice-kf5-6.4.5.2-1.mga8 (Package B, for later reference).

Files installed by Package B: (Installed by default)

‎/usr/lib64/libreoffice/program/libvclplug_gtk3_kde5lo.so
‎/usr/lib64/libreoffice/program/lo_kde5filepicker

Files installed by Package A: (NOT installed by default)

‎/usr/lib64/libreoffice/program/kde5.abignore
‎/usr/lib64/libreoffice/program/libkf5be1lo.so
‎/usr/lib64/libreoffice/program/libvclplug_kf5lo.so
‎/usr/lib64/libreoffice/program/libvclplug_qt5lo.so

That's why when you install Package A (libreoffice-kde5-6.4.5.2-1.mga8), you get Libreoffice more integrated visually to Plasma, with correct theme and icons respects Dark/Light theme.
Comment 6 Lewis Smith 2020-07-25 20:19:34 CEST
Thank you Manuel for comment 4; and Aurelien for the detailed (if confusing) fact-finding.

Assigning to tv for LibreOffice.

Assignee: bugsquad => thierry.vignaud
Severity: major => normal
CC: lewyssmith => (none)

Comment 7 Aurelien Oudelet 2020-08-23 16:55:08 CEST
* mar. 18 août 2020 14:00:00 tv <tv> 1:7.0.0.3-1.mga8
+ Revision: 1614782
 - temporary force java-11-openjdk
 - make math subpackage just a superficial package for math launcher (rhbz#1776774)
 - add optional support for latpack
 - 7.0.0
 - Resolves: rhbz#1745771
     + drop the GTK3-KF5 VCL plugin (formerly subpackage kf5)
     + rename the current -kde5 subpackage (the Qt5/KF5 VCL plugin) to -kf5
        
Good.

Resolved Fixed

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.